Picture.IndexedImage

From Xojo Documentation
Jump to: navigation, search
Property (As Picture)
aPicture.IndexedImage( Index as Integer ) = newPictureValue
or
PictureValue = aPicture.IndexedImage(Index as Integer)

Returns the image in the picture (QuickTime 4 and above only) specified by the passed Index.

Example

This example gets the image referenced by the passed index and displays it in the ImageWell.

dim width as integer = 2000
dim height as integer = 2000

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.IndexedImage(1)
end if
Personal tools
Namespaces

Variants
Actions
Main
Documentation
Community
Toolbox
Help