From Xojo Documentation

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

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

Supported for all project types and targets.

The source image to use.


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)