Class : HdrFormat

class deriving from AbstractBitmapPicture

HdrFormat :

prototype: HdrFormat ()

description:default constructor



HdrFormat :

prototype: HdrFormat (int , int H )

description:constructor for an empty black picture


input parameters:
width = picture width
height = picture height



HdrFormat :

prototype: HdrFormat (int , int , RGB& Col )

description:constructor for an empty picture using user background color


input parameters:
width = picture width
height = picture height
color = background color



~HdrFormat :

prototype: ~HdrFormat ()

description:destructor



PictureHeight :

prototype: int PictureHeight ()

description:Return size of the picture


input parameters:


return value: picture height



PictureWidth :

prototype: int PictureWidth ()

description:Return picture width


input parameters:


return value: picture width



SetPixel :

prototype: void SetPixel (int , int , PicRGB& Col )

description:Set Pixel Value


input parameters:
x = pixel coordinate along x axis
y = pixel coordinate along y axis
color = pixel color



SetPixel :

prototype: void SetPixel (int , int , Color& color )

description:Set Pixel Value


input parameters:
x = pixel coordinate along x axis
y = pixel coordinate along y axis
color = pixel color



GetPixel :

prototype: PicRGB GetPixel (int , int y )

description:Get Pixel Value


input parameters:
x = pixel coordinate along x axis
y = pixel coordinate along y axis
reurn value = pixel color



GetPixel :

prototype: void GetPixel (int , int , Color& color )

description:Get Pixel Value


input parameters:
x = pixel coordinate along x axis
y = pixel coordinate along y axis
color = reference on color that will contain pixel color



SavePicture :

prototype: bool SavePicture (char* FileName )

description:Save Picture


input parameters:
fileName = picture filename


return value: true if operation is successfull



LoadPicture :

prototype: bool LoadPicture (char* FileName )

description:Load Picture


input parameters:
fileName = picture filename


return value: true if operation is successfull



Clone :

prototype: AbstractBitmapPicture* Clone (int width = , int height = 0 )

description:clone a bitmap picture type with a new size


input parameters:
width = new width (0 if old width has to be kept)
height = new height (0 if old height has to be kept)


return value: pointer to resulting bitmap picture



GLLoadBitmapAsTexture :

prototype: void GLLoadBitmapAsTexture (double alpha = 2.0 )

description:Load bitmap picture as an open gl texture


input parameters:
alpha = alpha factor to use if no alpha channel is defined in bitmap file (if greater than 1.0, use RGB texture only)



GLUseBitmapAsTexture :

prototype: void GLUseBitmapAsTexture ()

description:use bitmap picture as current open gl texture



Back to index.