Posted - Jul 22 2021 : 06:07:55 Thanks. How to get this update?
ps Is there a way to use a workaround by counting the number of colors in an image?
xequte
Posted - Jul 21 2021 : 19:18:01 That is because the image is not truly gray-scale. For instance, look at pixel 715,2017, you will see that its RGB value is (33,30,25).
For the next update I have added a tolerance value to IsGrayScale, so this works:
If ImageEnView1.IEBitmap.IsGrayScale() then
ShowMessage( 'Image is gray scale' )
else
If ImageEnView1.IEBitmap.IsGrayScale(10) then
ShowMessage( 'Image is almost gray scale' )
else
ShowMessage( 'Image is colored' );