Picture.HorizontalResolution

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

The horizontal resolution of the picture.

Notes

The horizontal resolution is established when you use the Open shared method and written out when using the Save method. When creating a picture, the default resolution is 72 (pixels).

Example

This example gets the horizontal and vertical resolution of the Picture that was opened.

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.HorizontalResolution)
label2.text=str(pic.VerticalResolution)
end if
Personal tools
Namespaces

Variants
Actions
Main
Documentation
Community
Toolbox
Help