PixmapShape
From Xojo Documentation
Class (inherits from RectShape)
Used to place a picture in a vector graphics environment.
Properties | ||||||||||||||||
|
Constructors | |
|
Examples
The following method in the Paint event of a Canvas draws a red oval:
Var p As Picture
p = New Picture(240, 200)
p.Graphics.DrawingColor = &cFF0000
p.Graphics.FillOval(0, 0, 240, 200)
Var px As New PixmapShape(p)
px.Rotation = 45 / 57.2958 // 45 Degrees in radians
g.DrawObject(px, 150, 150)
p = New Picture(240, 200)
p.Graphics.DrawingColor = &cFF0000
p.Graphics.FillOval(0, 0, 240, 200)
Var 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.