Class : AbstractBitmapPicture

PictureHeight :

prototype: virtual int PictureHeight ()

description:Return picture height



PictureWidth :

prototype: virtual int PictureWidth ()

description:Return picture width



SetPixel :

prototype: virtual 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: virtual 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: virtual PicRGB GetPixel (int , int y )

description:Get Pixel Value in 24 bits precision


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


return value: pixel color



GetPixel :

prototype: virtual 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: virtual bool SavePicture (char* FileName )

description:Save Picture


input parameters:
fileName = picture filename


return value: true if operation is successfull



LoadPicture :

prototype: virtual bool LoadPicture (char* fileName )

description:Load Picture


input parameters:
fileName = picture filename


return value: true if operation is successfull



~AbstractBitmapPicture :

prototype: virtual ~AbstractBitmapPicture ()

description:virtual destructor



Resample :

prototype: virtual AbstractBitmapPicture* Resample (int , int height = 0 )

description:resample a picture and store result in a new one


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


return value: pointer to resulting bitmap picture



Rotate :

prototype: virtual AbstractBitmapPicture* Rotate (double angle )

description:rotate a picture and store result in a new one (counter clockwise orientation)


input parameters:
angle = rotation angle in degree


return value: pointer on the new resulting picture



SetQuality :

prototype: virtual void SetQuality (int quality )

description:set picture quality for destructive compression algorithm


input parameters:
quality = picture quality (range from 0 to 100)



GetQuality :

prototype: virtual int GetQuality ()

description:get picture quality for destructive compression algorithm


input parameters:


return value: picture quality (range from 0 to 100)



Clone :

prototype: virtual 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: virtual 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: virtual void GLUseBitmapAsTexture ()

description:use bitmap picture as current open gl texture



Back to index.