Picture.ImageCount

From Xojo Documentation
Jump to: navigation, search
Property (As Integer)
aPicture.ImageCount = newIntegerValue
or
IntegerValue = aPicture.ImageCount

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.

Dim width As Integer = 2000
Dim height As Integer = 2000

// creates new picture
Dim pic As New Picture(width, height, 32)
Dim f As FolderItem
f = GetOpenFolderItem("image/jpeg")
If f<> Nil Then
pic = Picture.Open(f)
ImageWell1.Image = pic
Label1.Text = Str(pic.ImageCount)
End If
Personal tools
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About