PixmapShape

From Xojo Documentation

Revision as of 15:41, 5 January 2022 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Class (inherits from RectShape)

Used to place a picture in a vector graphics environment.

Properties
Height SourceHeight Width
Image SourceLeft X
Rotation SourceTop Y
Scale SourceWidth


Constructors

Constructor(image as Picture)


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)

See Also

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