Picture.ImageCount

From Xojo Documentation

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

Supported for all project types and targets.

The number of indexed images in the picture.

Notes

This applies to image formats that can contain multiple images, such as TIFF.

Example

This example gets the number of indexed images in the picture.

Var width As Integer = 2000
Var height As Integer = 2000

// creates new picture
Var pic As New Picture(width, height, 32)
Var f As FolderItem
f = FolderItem.ShowOpenFileDialog("image/jpeg")
If f <> Nil Then
pic = Picture.Open(f)
ImageWell1.Image = pic
Label1.Value = pic.ImageCount.ToString
End If