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 (QuickTime 4 and above only).


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
Documentation
Community
Toolbox
Help