Class RenderingHelper
Helper class for rendering.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class RenderingHelper
Constructors
RenderingHelper()
Declaration
public RenderingHelper()
Methods
ConsiderHandles(Node, ref RectangleF, Single, MeasureUnits)
Considers the handles.
Declaration
public static void ConsiderHandles(Node node, ref RectangleF rectBounding, float fMagnification, MeasureUnits measureUnits)
Parameters
Type | Name | Description |
---|---|---|
Node | node | The node. |
System.Drawing.RectangleF | rectBounding | The bounding rectangle. |
System.Single | fMagnification | The magnification value. |
MeasureUnits | measureUnits | The measure units. |
CreateCursor(Bitmap)
Creates a cursor from a bitmap.
Declaration
public static Cursor CreateCursor(Bitmap bmp)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Bitmap | bmp | The bitmap. |
Returns
Type | Description |
---|---|
System.Windows.Forms.Cursor | The cursor. |
CreateCursor(Bitmap, Cursor)
Creates a cursor from a bitmap and combines it with another cursor.
Declaration
public static Cursor CreateCursor(Bitmap bmp, Cursor prototype)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Bitmap | bmp | The bitmap. |
System.Windows.Forms.Cursor | prototype | The prototype cursor. |
Returns
Type | Description |
---|---|
System.Windows.Forms.Cursor | The cursor. |
GetBoundingRectangle(Model, MeasureUnits)
Calculate bounding rectangle of the given model.
Declaration
public static RectangleF GetBoundingRectangle(Model model, MeasureUnits measureUnits)
Parameters
Type | Name | Description |
---|---|---|
Model | model | Model to calculate bouncing rectangle |
MeasureUnits | measureUnits | MeasureUnits to convert bounding rectangle to. |
Returns
Type | Description |
---|---|
System.Drawing.RectangleF | Bounding rectangle. |
GetBoundingRectangle(Node, MeasureUnits)
Calculate bounding rectangle of the given node.
Declaration
public static RectangleF GetBoundingRectangle(Node node, MeasureUnits measureUnits)
Parameters
Type | Name | Description |
---|---|---|
Node | node | Node to calculate bounding rectangle. |
MeasureUnits | measureUnits | MeasureUnits to convert bounding rectangle to. |
Returns
Type | Description |
---|---|
System.Drawing.RectangleF | Bounding rectangle. |
GetBoundingRectangle(Node, MeasureUnits, Boolean)
Calculate bounding rectangle of the given node.
Declaration
public static RectangleF GetBoundingRectangle(Node node, MeasureUnits measureUnits, bool considerShadow)
Parameters
Type | Name | Description |
---|---|---|
Node | node | Node to calculate bounding rectangle. |
MeasureUnits | measureUnits | MeasureUnits to convert bounding rectangle to. |
System.Boolean | considerShadow | Indicates that need to consider shadow. |
Returns
Type | Description |
---|---|
System.Drawing.RectangleF | Bounding rectangle. |
GetBoundingRectangle(ICollection, MeasureUnits)
Calculate bounding rectangle of given nodes collection.
Declaration
public static RectangleF GetBoundingRectangle(ICollection nodes, MeasureUnits measureUnits)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ICollection | nodes | Nodes collection to calculate bounding rectangle. |
MeasureUnits | measureUnits | MeasureUnits to convert bounding rectangle to. |
Returns
Type | Description |
---|---|
System.Drawing.RectangleF | Bounding rectangle. |
GetBoundingRectangle(ICollection, MeasureUnits, Boolean)
Calculate bounding rectangle of given nodes collection.
Declaration
public static RectangleF GetBoundingRectangle(ICollection nodes, MeasureUnits measureUnits, bool considerShadow)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ICollection | nodes | Nodes collection to calculate bounding rectangle. |
MeasureUnits | measureUnits | MeasureUnits to convert bounding rectangle to. |
System.Boolean | considerShadow | Indicates that need to consider shadow. |
Returns
Type | Description |
---|---|
System.Drawing.RectangleF | Bounding rectangle. |
RenderToImage(ICompositeNode)
Renders composite node
Declaration
public static Image RenderToImage(ICompositeNode nodeComposite)
Parameters
Type | Name | Description |
---|---|---|
ICompositeNode | nodeComposite | The node composite. |
Returns
Type | Description |
---|---|
System.Drawing.Image | The image. |
RenderToImage(ICompositeNode, RenderingStyle)
Renders composite node using given rendering style.
Declaration
public static Image RenderToImage(ICompositeNode nodeComposite, RenderingStyle styleRender)
Parameters
Type | Name | Description |
---|---|---|
ICompositeNode | nodeComposite | The composite node. |
RenderingStyle | styleRender | The render style. |
Returns
Type | Description |
---|---|
System.Drawing.Image | Metafile image. |
RenderToImage(NodeCollection)
Render node collection to image.
Declaration
public static Image RenderToImage(NodeCollection nodes)
Parameters
Type | Name | Description |
---|---|---|
NodeCollection | nodes | The nodes to draw. |
Returns
Type | Description |
---|---|
System.Drawing.Image | Metafile image. |
RenderToImage(NodeCollection, RenderingStyle)
Render given node collection to image.
Declaration
public static Image RenderToImage(NodeCollection nodes, RenderingStyle styleRender)
Parameters
Type | Name | Description |
---|---|---|
NodeCollection | nodes | The nodes to draw. |
RenderingStyle | styleRender | The render style. |
Returns
Type | Description |
---|---|
System.Drawing.Image | Metafile image. |