I already showed you how to do this with your pdf question.
This functions here so I have no idea why it does not work for you.
function GetColorType(AIEBitmap: TIEBitmap): TIEColorType;
begin
if AIEBitmap.Bitcount = 1 then
Result := ieBlackWhite
else if AIEBitmap.IsGrayScale then
Result := ieGrayScale
else if AIEBitmap.PaletteUsed > 2 then
Result := ieColor
else
Result := ieUnknown;
end;
You have to show the code you use to load the IEBitmap and the code you are using to test the color.
Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development