ImageEn, unit iexMetaHelpers |
|
BitsPerPixelToStr
Declaration
function BitsPerPixelToStr(BPP: Integer): string;
Description
Provides a suitable textual representation of a Bits per Sample value (i.e. BitsPerSample * SamplesPerPixel). Example outputs: Monochrome, 128 colors, 24 bit color, etc.
Note: You must add iexMetaHelpers to your uses clause to support BitsPerPixelToStr
// Display the color depth of the currently displayed image
lblColorDepth.Caption := BitsPerPixelToStr( ImageEnView1.IO.Params.BitsPerSample * ImageEnView1.IO.Params.SamplesPerPixel );