Picture.Width

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aPicture.Width

Supported for all project types and targets.

The width (in pixels) of the picture.

Example

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

Var width As Integer = 2000
Var height As Integer = 2000

// creates new picture
Var pic As New Picture(width, height)
Var f As FolderItem
f = FolderItem.ShowOpenFileDialog("image/jpeg")
If f <> Nil Then
pic = Picture.Open(f)
Label1.Value = pic.Width.ToString
Label2.Value = pic.Height.ToString
End If