TImageFormatInfo Record
ImagingTypes

Additional information for each TImageFormat value.

Pascal
public TImageFormatInfo = packed record
  Format: TImageFormat;
  Name: array[0..15] of Char;
  BytesPerPixel: LongInt;
  ChannelCount: LongInt;
  PaletteEntries: LongInt;
  HasGrayChannel: Boolean;
  HasAlphaChannel: Boolean;
  IsFloatingPoint: Boolean;
  UsePixelFormat: Boolean;
  IsRBSwapped: Boolean;
  RBSwapFormat: TImageFormat;
  IsIndexed: Boolean;
  IsSpecial: Boolean;
  PixelFormat: PPixelFormatInfo;
  GetPixelsSize: TFormatGetPixelsSizeFunc;
  CheckDimensions: TFormatCheckDimensionsProc;
  GetPixel32: TGetPixel32Func;
  GetPixelFP: TGetPixelFPFunc;
  SetPixel32: TSetPixel32Proc;
  SetPixelFP: TSetPixelFPProc;
  SpecialNearestFormat: TImageFormat;
  end;
File

ImagingTypes (at line 383)

Members
Members 
Description 
Format: TImageFormat; 
Format described by this record 
Name: array[0..15] of Char; 
Symbolic name of format 
BytesPerPixel: LongInt; 
Number of bytes per pixel (note: it is 0 for formats where BitsPerPixel < 8 (e.g. 
ChannelCount: LongInt; 
Number of image channels (R, G, B, A, Gray) 
PaletteEntries: LongInt; 
Number of palette entries 
HasGrayChannel: Boolean; 
True if image has grayscale channel 
HasAlphaChannel: Boolean; 
True if image has alpha channel 
IsFloatingPoint: Boolean; 
True if image has floating point pixels 
UsePixelFormat: Boolean; 
True if image uses pixel format 
IsRBSwapped: Boolean; 
True if Red and Blue channels are swapped e.g. 
RBSwapFormat: TImageFormat; 
Indicates supported format with swapped Red and Blue channels, ifUnknown if such format does not exist 
IsIndexed: Boolean; 
True if image uses palette 
IsSpecial: Boolean; 
True if image is in special format 
PixelFormat: PPixelFormatInfo; 
Pixel format structure 
GetPixelsSize: TFormatGetPixelsSizeFunc; 
Returns size in bytes of Width * Height pixels of image 
CheckDimensions: TFormatCheckDimensionsProc; 
some formats have limited values of Width and Height. 
GetPixel32: TGetPixel32Func; 
32bit ARGB pixel get function 
GetPixelFP: TGetPixelFPFunc; 
FP ARGB pixel get function 
SetPixel32: TSetPixel32Proc; 
32bit ARGB pixel set procedure 
SetPixelFP: TSetPixelFPProc; 
FP ARGB pixel set procedure 
SpecialNearestFormat: TImageFormat; 
Regular image format used when compressing/decompressing special images as source/target 
Related Information
You are here: Symbol Reference > Structs, Records, Enums > TImageFormatInfo Record