From Xojo Documentation

Revision as of 19:48, 16 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Supported for all project types and targets.

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


This method does not work with HTMLViewer and OpenGLSurface.


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

Var p As New Picture(Me.Width, Me.Height)
Me.DrawInto(p.Graphics, 0, 0)
Canvas1.Backdrop = p