From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Integer )
aPixmapShape.SourceHeight = newIntegerValue
IntegerValue = aPixmapShape.SourceHeight

Supported for all project types and targets.

The height (pixels) of the source image, from SourceTop, SourceLeft. Used to define a subregion of Image to use.


This example reports the left, top, width, and height of the image that was assigned to the PixmapShape. This image was added to the project and the coordinates are 0, 0, 558, 372.

Var p As Picture
Var px As PixmapShape
p = New Picture(558, 372)
px = New PixmapShape(p)
px.Image = CarImage

Label1.Text = px.SourceLeft.ToString
Label2.Text = px.SourceTop.ToString
Label3.Text = px.SourceWidth.ToString
Label4.Text = px.SourceHeight.ToString