RectControl.DrawInto

From Xojo Documentation
Jump to: navigation, search
Method

RectControl.DrawInto(g as Graphics,x as Integer, y as Integer)

Draws the contents of the RectControl into the specified Graphics context. The parameters x and y are the coordinates of the top, left corner.

Notes

This method does not work with HTMLViewer and OpenGLSurface.

Example

This example draws the current control into the Graphics of a Picture and then displays it as the Backdrop of a Canvas:

Dim p As New Picture(Me.Width, Me.Height)
Me.DrawInto(p.Graphics, 0, 0)
Canvas1.Backdrop = p
Personal tools
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About