Picture get depth color

Hello All,

I try to get the depth color of picture class before send to imageWell.
But if the image is 1 bit (b&w) or 8 bits (256 colors) the value of picture.depth is allway 32.

Why ? another solution ?

Best Regards
Olivier

Xojo pictures currently are always 32bit.

Thanks to reply Christian.

Maybe are your another solution for get depht information form image file ?
I needeed to dectect the 1bit ou 8bit color.

Thanks
Olivier

I test another solution, i see in manual MBS plugin png this option, i try.

Thanks
Olivier

I think we do have functions to count number of colors.