ImageEn, unit iexHelperFunctions

BitsPerPixelToStr

BitsPerPixelToStr


Declaration


function BitsPerPixelToStr(iBitsPerPixel: 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.


Example


// Display the color depth of the currently displayed image
lblColorDepth.Caption := BitsPerPixelToStr(ImageEnView1.IO.Params.BitsPerSample * ImageEnView1.IO.Params.SamplesPerPixel);