Class BitmapNode
Stores and renders a bitmap image.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class BitmapNode : Node, IUnitIndependent, IDispatchNodeEvents, ISerializable, INode, ICloneable, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, IServiceProvider, IGraphNode, IDeserializationCallback, IDisposable
Constructors
BitmapNode(BitmapNode)
Initializes a new instance of the BitmapNode class.
Declaration
public BitmapNode(BitmapNode src)
Parameters
Type | Name | Description |
---|---|---|
BitmapNode | src | Object to copy. |
BitmapNode(Bitmap)
Initializes a new instance of the BitmapNode class.
Declaration
public BitmapNode(Bitmap srcbitmap)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Bitmap | srcbitmap | The bitmap for the node. |
BitmapNode(Bitmap, RectangleF)
Initializes a new instance of the BitmapNode class.
Declaration
public BitmapNode(Bitmap src, RectangleF rcBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Bitmap | src | The bitmap for the node. |
System.Drawing.RectangleF | rcBounds | The node bounds. |
BitmapNode(Bitmap, RectangleF, MeasureUnits)
Initializes a new instance of the BitmapNode class.
Declaration
public BitmapNode(Bitmap src, RectangleF rcBounds, MeasureUnits measureUnits)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Bitmap | src | The bitmap for the node. |
System.Drawing.RectangleF | rcBounds | The node bounds. |
MeasureUnits | measureUnits | Specifies rcBounds measure units. |
BitmapNode(Stream)
Initializes a new instance of the BitmapNode class.
Declaration
public BitmapNode(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | IO stream containing the bitmap. |
BitmapNode(SerializationInfo, StreamingContext)
Initializes a new instance of the BitmapNode class.
Declaration
protected BitmapNode(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | Serialization state information. |
System.Runtime.Serialization.StreamingContext | context | Streaming context information. |
BitmapNode(String)
Initializes a new instance of the BitmapNode class.
Declaration
public BitmapNode(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | Name of file to load bitmap from. |
Properties
Image
Gets or sets the System.Drawing.Image.
Declaration
public Bitmap Image { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Bitmap | The image. |
Labels
Declaration
public LabelCollection Labels { get; }
Property Value
Type |
---|
LabelCollection |
Methods
AccumulateRefreshRect(ref RectangleF)
Accumulates the refresh rectangle.
Declaration
protected override void AccumulateRefreshRect(ref RectangleF rcRefresh)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | rcRefresh | The refresh rectangle. |
Overrides
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | Copy of the object this method is invoked against. |
Overrides
GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo with the data needed to serialize the target object.
Declaration
protected override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | SerializationInfo object to populate. |
System.Runtime.Serialization.StreamingContext | context | Destination streaming context. |
Overrides
Render(Graphics)
Renders the shapes visual representation on given graphics.
Declaration
protected override void Render(Graphics gfx)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | Graphics to draw on |
Overrides
RenderContiguousData(Graphics)
The methods used to draw contiguous date. Such as labels or ports.
Declaration
protected override void RenderContiguousData(Graphics gfx)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | Graphics to draw on |
Overrides
UpdateReferences(IServiceReferenceProvider)
Updates the references from service provider.
Declaration
public override void UpdateReferences(IServiceReferenceProvider provider)
Parameters
Type | Name | Description |
---|---|---|
IServiceReferenceProvider | provider | The service provider. |