Picture.Height

From Xojo Documentation
Jump to: navigation, search
Property (As Integer)
The property is read-only.

IntegerValue = aPicture.Height

The height (in pixels) of the picture.


This example displays the width and height of the picture that the user chose.

dim width as integer = 2000
dim height as integer = 2000
//dim p2 as new picture(width,height,32)

// 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)
Label1.text=str(pic.width)
Label2.text=str(pic.height)
end if
Personal tools
Namespaces

Variants
Actions
Main
Documentation
Community
Toolbox
Help