Class : GifFormat
GifFormat :
prototype: GifFormat ()
description:default constructor
GifFormat :
prototype: GifFormat (int , int height )
description:constructor for an empty black picture
input parameters:
width = picture width
height = picture height
GifFormat :
prototype: GifFormat (int , int , PicRGB& color )
description:constructor for an empty picture using user background color
input parameters:
width = picture width
height = picture height
color = background color
~GifFormat :
prototype: ~GifFormat ()
description:destructor
PictureHeight :
prototype: int PictureHeight ()
description:Return picture height
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& 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
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
SetQuality :
prototype: void SetQuality (int quality )
description:set picture quality for destructive compression algorithm
input parameters:
quality = picture quality (range from 0 to 100)
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.