Renders the visual to the specified graphics context.
Namespace: Spotfire.Dxp.ApplicationAssembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 18.10.8513.5432 (18.10.8513.5432)
Syntax
Parameters
- graphics
- Type: System.Drawing Graphics
The graphics context.
- bounds
- Type: System.Drawing Rectangle
The rectangle to render to.
Examples
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