From Xojo Documentation

Class (inherits from RectShape)

Used to place a picture in a vector graphics environment.

Border Image SourceWidth
BorderColor Rotation Width
BorderWidth Scale X
Fill SourceHeight Y
FillColor SourceLeft
Height SourceTop


PixmapShape.Constructor(image as Picture)


The following method in the Paint event of a Canvas draws a red oval:

Dim p As Picture
p = New Picture(240, 200)
p.Graphics.ForeColor = &cFF0000
p.Graphics.FillOval(0, 0, 240, 200)
Dim px As New PixmapShape(p)
px.Rotation = 45 / 57.2958 // 45 Degrees in radians
g.DrawObject(px, 150, 150)

See Also

ArcShape, CurveShape, FigureShape, FolderItem, Group2D, Graphics, Object2D, OvalShape, Picture, RectShape, RoundRectShape, StringShape classes.