Picture.Depth

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aPicture.Depth

Supported for all project types and targets.

The depth (bits) of the picture. A depth of zero indicates that the picture has no bitmap at all, so may be an Image or a Vector type.

Example

This example reports a bit depth of 32.

Var pic As Picture
Var f As FolderItem
f = FolderItem.ShowOpenFileDialog("image/jpeg")
If f <> Nil Then
pic = Picture.Open(f)
ImageWell1.Image = pic
Label1.Value = pic.Depth.ToString
End If