Bitmaps can have millions of colors. Is each pixel in the bitmap the same color? If so then try:
var
iRGB: TRGB;
iRGBString: string;
iColor: TColor;
{ Display RGB }
iRGB := ImageEnMView1.IEBitmap.Pixels_ie24RGB[0, 0];
iRGBString := 'RGB: ' + IntToStr(iRGB.r) + '.' + IntToStr(iRGB.g) + '.' +
IntToStr(iRGB.b);
LabelRGB1.Caption := iRGBString;
LabelRGB1.Update;
{ Display Color }
LabelColor1.Caption := 'Color: ' + ColorToString(TRGB2TColor(iRGB));
LabelColor1.Update;
This gets the color of the bitmap for the selected image from the top left pixel of the bitmap.
Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development