Class : PcxFormat
PcxFormat :
prototype: PcxFormat ()
description:default constructor
PcxFormat :
prototype: PcxFormat (int , int H )
description:constructor for an empty black picture
input parameters:
width = picture width
height = picture height
PcxFormat :
prototype: PcxFormat (int , int , PicRGB& Col )
description:constructor for an empty picture using user background color
input parameters:
width = picture width
height = picture height
color = background color
~PcxFormat :
prototype: ~PcxFormat ()
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
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
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.