This reference page is linked to from the following overview topics: Utility Classes.
Image class.
Utility class used to load and get manipulate image data from disk or memory.
#include <fbimage.h>

Public Member Functions |
|
| FBImage (char *pFileName, HIObject pObject=NULL) | |
| Constructor. |
|
| virtual void | FBDelete () |
| Virtual FBDelete function. |
|
| void | Cleanup () |
| Cleanup image data, making it black.
|
|
| bool | Init (FBImageFormat pFormat, int pWidth, int pHeight) |
| Init. |
|
| unsigned char * | GetDataBuffer () |
| Access image data buffer, allow
modifications. |
|
| bool | ConvertFormat (FBImageFormat pNewFormat) |
| Convert the image data format to another
format. |
|
| bool | ConvertSize (int pWidth, int pHeight) |
| Convert the image size. |
|
| void | VerticalFlip () |
| Flip the image vertically. |
|
| bool | WriteToTif (char *pFileName, char *pComments, bool pCompressed) |
| Write image data to a TIF file on disk.
|
|
| bool | IsCompressedTif (char *pFileName) |
| Query TIF file about its compressed status.
|
|
Public Attributes |
|
| FBPropertyInt | Width |
| Read Write Property: Width of the
image in pixels. |
|
| FBPropertyInt | Height |
| Read Write Property: Height of the
image in pixels. |
|
| FBPropertyInt | Depth |
| Read Write Property: Color depth of
the image. |
|
| FBPropertyImageFormat | Format |
| Read Write Property: Image data
format. |
|
| FBPropertyImageType | Type |
| Read Only Property: Image type,
refering to either frame or field. |
|
| FBPropertyImageInterleaveType | InterleaveType |
| Read Only Property: Image interleave
type. |
|
| FBPropertyImageInterpolationType | InterpolationType |
| Read Only Property: Image
interpolation type. |
|
| FBImage | ( | char * | pFileName, |
| HIObject | pObject =
NULL |
||
| ) |
Constructor.
| pFileName | Path to the image file. If pObject is not NULL, pFileName will be ignored. |
| pObject | For internal use only. |
| virtual void FBDelete | ( | ) | [virtual] |
| void Cleanup | ( | ) |
Cleanup image data, making it black.
| bool Init | ( | FBImageFormat | pFormat, |
| int | pWidth, | ||
| int | pHeight | ||
| ) |
Init.
| pFormat | Image format used to initialize data buffer. |
| pWidth | Image width in pixels. |
| pHeight | Image height in pixels. |
| unsigned char* GetDataBuffer | ( | ) |
Access image data buffer, allow modifications.
| bool ConvertFormat | ( | FBImageFormat | pNewFormat | ) |
Convert the image data format to another format.
| pNewFormat | The new format to convert the image to. |
| bool ConvertSize | ( | int | pWidth, |
| int | pHeight | ||
| ) |
Convert the image size.
| pWidth | New width of the image. |
| pHeight | New height of the image. |
| void VerticalFlip | ( | ) |
Flip the image vertically.
| bool WriteToTif | ( | char * | pFileName, |
| char * | pComments, | ||
| bool | pCompressed | ||
| ) |
Write image data to a TIF file on disk.
| pFileName | Full TIF file path name of the file to write. |
| pComments | Comments appended to the TIF file. |
| pCompressed | If true, the image data in the file will be compressed. |
| bool IsCompressedTif | ( | char * | pFileName | ) |
Query TIF file about its compressed status.
| pFileName | Full TIF file path name of the file to query. |
Read Write Property: Width of the image in pixels.
Read Write Property: Height of the image in pixels.
Read Write Property: Color depth of the image.
| FBPropertyImageFormat Format |
Read Write Property: Image data format.
| FBPropertyImageType Type |
Read Only Property: Image type, refering to either frame or field.
| FBPropertyImageInterleaveType InterleaveType |
Read Only Property: Image interleave type.
Only meaningful if image type is field.
| FBPropertyImageInterpolationType InterpolationType |
Read Only Property: Image interpolation type.