Class ImageElement
ImageElement class.
Implements
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.SVG.IO
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class ImageElement : SuperElement, IElement, IStrokeAttributes, IFillAttributes, ITransformAttribute, IStyleAttribute, IFontAttributes, IViewBoxAttribute, IOpacityAttribute, IClipingAttribute
Constructors
ImageElement()
Initializes a new instance of the ImageElement class.
Declaration
public ImageElement()
Properties
Height
Gets or sets the height.
Declaration
public Length Height { get; set; }
Property Value
Type | Description |
---|---|
Length | The height. |
HRef
Gets or sets the H ref.
Declaration
public string HRef { get; set; }
Property Value
Type | Description |
---|---|
System.String | The H ref. |
Width
Gets or sets the width.
Declaration
public Length Width { get; set; }
Property Value
Type | Description |
---|---|
Length | The width. |
X
Gets or sets the length.
Declaration
public Length X { get; set; }
Property Value
Type | Description |
---|---|
Length | The length. |
Y
Gets or sets the length.
Declaration
public Length Y { get; set; }
Property Value
Type | Description |
---|---|
Length | The length. |
Methods
DrawSelf(Graphics)
Draws self.
Declaration
protected override void DrawSelf(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The graphics. |
Overrides
FromImage(Image, Single, Single, Single, Single)
Froms the image.
Declaration
public static ImageElement FromImage(Image img, float x, float y, float width, float height)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image | img | The img. |
System.Single | x | The x. |
System.Single | y | The y. |
System.Single | width | The width. |
System.Single | height | The height. |
Returns
Type | Description |
---|---|
ImageElement | Image element |