TBitmapCanvasSaveFormat

The TBitmapCanvasSaveFormat data structure is used to control how a bitmap canvas is saved.

typedef struct {

int Size;

int FileFormat;

int JpegCompressionQuality;

} TBitmapCanvasSaveFormat;

Members

Size

Specifies the size, in bytes, of this data structure. Set this member to sizeof(TBitmapCanvasSaveFormat) before calling a function with a TBitmapCanvasSaveFormat parameter.

FileFormat

Determines which bitmap file format is output by calls to C_SaveBitmapCanvas and C_SaveBitmapCanvasMem. Can be one of the following: bffWindowsBitmap, bffPNG, bffGIF, bffJPEG, bffPDF or bffRGB.

When bffRGB is specified, the pixel data is returned as a packed array of RGB values, with 8 bit colour channels. Thus the pixel data has size equal to Height * Width * 3.

JpegCompressionQuality

A value between 1 and 100 that determines the quality of JPEG files. Lower values have poorer visual quality, but greater compression (i.e. smaller file size). Higher values have better visual quality, but less compression (i.e. larger file size). If a negative value is specified then a default value of 95 is used.

Remarks

The values of FileFormat and JpegCompressionQuality specified in this structure are always used instead of any values specified in the TViewParameters structure passed to C_DrawModel3DViewToBitmapCanvas.

See also

C_SaveBitmapCanvas, C_SaveBitmapCanvasMem.