PixmapShape.SourceLeft

From Xojo Documentation

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

Property (As Double )
aPixmapShape.SourceLeft = newDoubleValue
or
DoubleValue = aPixmapShape.SourceLeft

Supported for all project types and targets.

The number of pixels from the left edge of the source image.

Used to define the subregion of Image to draw.


Example

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