Piccolo.NET

PNode.ToImage Method (Int32, Int32, Brush)

Return a new Image of the requested size representing this node and all of its children.

public virtual Image ToImage(
   int width,
   int height,
   Brush backgroundBrush
);

Parameters

width
The desired width of the image, in pixels.
height
The desired height of the image, in pixels.
backgroundBrush
The brush used to render the background of the image.

Return Value

A new Image representing this node and its descendents.

Remarks

If backgroundBrush is null, then the image will not be filled with a color prior to rendering.

See Also

PNode Class | UMD.HCIL.Piccolo Namespace | PNode.ToImage Overload List