Renders the visual to the specified graphics context.
Namespace: Spotfire.Dxp.Application
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 25.11.10401.3615 (25.11.10401.3615)
Syntax
C#
public void Render( Graphics graphics, Rectangle bounds )
Parameters
- graphics
- Type: System.DrawingGraphics
The graphics context. - bounds
- Type: System.DrawingRectangle
The rectangle to render to.
Examples
C#
Visual visual = ...; using (Bitmap image = new Bitmap(1024, 768)) { using (Graphics g = Graphics.FromImage(image)) { visual.Render(g, new Rectangle(0, 0, image.Width, image.Height)); } image.Save("C:\\image.png"); }
Version Information
See Also