VisualContent Render Method TIBCO Spotfire 6.5 API Reference
Renders the visual to the specified graphics context.

Namespace: Spotfire.Dxp.Application.Visuals
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 14.10.7525.5058 (14.10.7525.5058)
Syntax

public void Render(
	Graphics graphics,
	Rectangle bounds
)

Parameters

graphics
Type: System.Drawing Graphics
The graphics context.
bounds
Type: System.Drawing Rectangle
The rectangle to render to.
Examples

The following example shows how to render a visual to a png file.
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

Supported in: 6.5, 6.0, 5.5, 5.0, 4.5
See Also