Class ImageShape
Represents an image shape.
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.DLS
Assembly: Syncfusion.DLS.Base.dll
Syntax
public class ImageShape : Shape, IEntityBase, IXDLSSerializable, IShape, ILeafWidget, IWidget
Remarks
Supported by Essential PDF only.
Constructors
ImageShape(Canvas)
Create a new Image Shape.
Declaration
public ImageShape(Canvas canvas)
Parameters
Type | Name | Description |
---|---|---|
Canvas | canvas |
Properties
Bounds
Gets / sets boundaries of the image.
Declaration
public RectangleF Bounds { get; set; }
Property Value
Type |
---|
System.Drawing.RectangleF |
Height
Gets / Sets the height of the image.
Declaration
public float Height { get; set; }
Property Value
Type |
---|
System.Single |
Image
Represents the Image.
Declaration
public Image Image { get; set; }
Property Value
Type |
---|
System.Drawing.Image |
Location
Gets / sets location of the image.
Declaration
public PointF Location { get; set; }
Property Value
Type |
---|
System.Drawing.PointF |
Size
Gets / sets size of the image.
Declaration
public SizeF Size { get; set; }
Property Value
Type |
---|
System.Drawing.SizeF |
Width
Gets / Sets the width of the image.
Declaration
public float Width { get; set; }
Property Value
Type |
---|
System.Single |
X
Gets x coordinate of the shape.
Declaration
public float X { get; set; }
Property Value
Type |
---|
System.Single |
Y
Gets y coordinate of the shape.
Declaration
public float Y { get; set; }
Property Value
Type |
---|
System.Single |
Methods
ReadXmlAttributes(IXDLSAttributeReader)
Declaration
protected override void ReadXmlAttributes(IXDLSAttributeReader reader)
Parameters
Type | Name | Description |
---|---|---|
IXDLSAttributeReader | reader |
Overrides
ReadXmlContent(IXDLSContentReader)
Overloaded. Reads image from XML.
Declaration
protected override bool ReadXmlContent(IXDLSContentReader reader)
Parameters
Type | Name | Description |
---|---|---|
IXDLSContentReader | reader | Reader object. |
Returns
Type | Description |
---|---|
System.Boolean | True always. |
Overrides
WriteXmlAttributes(IXDLSAttributeWriter)
Declaration
protected override void WriteXmlAttributes(IXDLSAttributeWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IXDLSAttributeWriter | writer |
Overrides
WriteXmlContent(IXDLSContentWriter)
Overloaded. Writes image to XML.
Declaration
protected override void WriteXmlContent(IXDLSContentWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IXDLSContentWriter | writer | Writer object. |
Overrides
Explicit Interface Implementations
IWidget.Draw(CustomGraphics, LayoutedWidget)
Declaration
void IWidget.Draw(CustomGraphics cg, LayoutedWidget ltWidget)
Parameters
Type | Name | Description |
---|---|---|
CustomGraphics | cg | |
LayoutedWidget | ltWidget |