Image.Depth (gb.image)

Property Read Depth As Integer

Returns the depth of the image.