Menu

Properties

Perrotti

TFastImageEx properties

property AsBitmap: TBitmap;


Read/write property. Provide full bitmap support. Reading property, binary or gray images (1 channel) generate an 8 bits bitmaps with gray palette. RGB or RGBA images (3 or 4 channels) generate 24 or 32 bits bitmaps. To write, bitmap can have pixel format with 1, 8, 24 or 32 bits.

property iSize: TfiSize;


Return the dimensions of image (Width and Height).

property Channels \[index:integer\]:TfiChannel; default;


Read only. Return a reference to channel specified by index. TfiChannel is an abstract base class of all channel’s classes, but declares all channel’s methods, so, you don’t need a typecast to use the methods on TfiChannel. However to send a channel to some methods can be necessary a type cast.

property nChannels: integer;


Read only. Return then number of channels on image channel’s list.

property Map8 \[index:integer\]: PByteMap;
property Map16 \[index:integer\]: PSIntMap;
property Map32 \[index:integer\]: PFloatMap;


Read only. Return a reference to map inside the channel specified by index. You must be sure to use the right map for the type of channel chosen.

Example:

var 
  fi: TFastImageEx;
  map8: PByteMap;
begin
  \[. . .\]
  if fi.Channels\[fi_GRAY\] is TfiChannel8U
  then begin
    map8:= fi.Map8\[fi_GRAY\];
    // now you can use the map to read or write values
    \[. . .\]
  end;
  \[. . .\]
end;


.


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.