Forum Discussion

Subbulakshmi's avatar
Subbulakshmi
Frequent Contributor
12 years ago

Identifying image type

Hi,



Using our application,we will be saving images. We need to identify whether the image is monochrome or not. Is there any way to find the RGB values of the image using test complete..





Regards,

Deepa

2 Replies

  • I haven't used this yet but it looks like you can do what you want with the Picture Object. There is some example code in the help files. I think more specifically what you want is in the Pixels property. There's some sample code in there too but you would load in your picture and then loop through the pixels looking for any pixel where r, g, and b are not the same value.

    R=G=B is monochrome



    BTW, monochrome is black and white (no greys). Greyscale is black, white, and shades of grey inbetween.
  • Subbulakshmi's avatar
    Subbulakshmi
    Frequent Contributor
    Hi,



    RGB Value is coming in 3 digits - 7 digits.. can you please help me in how to decode the same...





    Thanks

    Deepa