PixmapShape.Image

From Xojo Documentation

Property (As Picture )
aPixmapShape.Image = newPictureValue
or
PictureValue = aPixmapShape.Image

Supported for all project types and targets.

The source image to use.

Example

This example uses a jpeg image that has been added to the project. You can also initialize the PixmapShape to the image using the constructor. This code is is in the Paint event of a Canvas:

Var p As Picture
Var px As PixmapShape
p = New Picture(640, 480)
px = New PixmapShape(p)
px.Image = CarImage

g.DrawObject(px, 10, 250)