Class BitmapTool
The Bitmap tool is used for adding/drawing graphical representation object of a BitmapNode in Diagram control.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Windows.dll
Syntax
public class BitmapTool : RectangleToolBase, IDisposable
Remarks
Constructors
BitmapTool(DiagramController)
Initializes a new instance of the BitmapTool class.
Declaration
public BitmapTool(DiagramController controller)
Parameters
Type | Name | Description |
---|---|---|
DiagramController | controller | The controller. |
Methods
CreateNode(Image, RectangleF)
Creates the node from image.
Declaration
public virtual Node CreateNode(Image imgToInsert, RectangleF rectNodeBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image | imgToInsert | The image to insert. |
System.Drawing.RectangleF | rectNodeBounds | The node bounds. |
Returns
Type | Description |
---|---|
Node | The node. |
CreateNode(RectangleF)
Creates the node from given rectangle base.
Declaration
protected override Node CreateNode(RectangleF rectBounding)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | rectBounding | The bounding rectangle. |
Returns
Type | Description |
---|---|
Node | The tool. |
Overrides
Draw(Graphics)
Draws the specified graphics.
Declaration
public override void Draw(Graphics gfx)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | Graphics to draw on. |
Overrides
Implements
System.IDisposable