WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ImageElement - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ImageElement

    Inheritance
    System.Object
    Element
    SuperElement
    ImageElement
    Implements
    IElement
    IStrokeAttributes
    IFillAttributes
    ITransformAttribute
    IStyleAttribute
    IFontAttributes
    IViewBoxAttribute
    IOpacityAttribute
    IClipingAttribute
    Inherited Members
    SuperElement.Draw(Graphics)
    SuperElement.SetXmlAttribute(XmlAttribute)
    SuperElement.IStrokeAttributes.Stroke
    SuperElement.IStrokeAttributes.StrokeWidth
    SuperElement.IStrokeAttributes.StrokeLinecap
    SuperElement.IStrokeAttributes.StrokeLinejoin
    SuperElement.IStrokeAttributes.StrokeMiterlimit
    SuperElement.IStrokeAttributes.StrokeDasharray
    SuperElement.IStrokeAttributes.StrokeDashoffset
    SuperElement.IStrokeAttributes.StrokeOpacity
    SuperElement.IFillAttributes.Fill
    SuperElement.IFillAttributes.FillOpacity
    SuperElement.ITransformAttribute.Transform
    SuperElement.Style
    SuperElement.IFontAttributes.FontFamily
    SuperElement.IFontAttributes.FontStyle
    SuperElement.IFontAttributes.FontVariant
    SuperElement.IFontAttributes.FontWeight
    SuperElement.IFontAttributes.FontStretch
    SuperElement.IFontAttributes.FontSize
    SuperElement.IFontAttributes.FontSizeAdjust
    SuperElement.IFontAttributes.Font
    SuperElement.IViewBoxAttribute.ViewBox
    SuperElement.IOpacityAttribute.Opacity
    SuperElement.IClipingAttribute.ClipRule
    SuperElement.IClipingAttribute.ClipPath
    Element.AddChild(Element)
    Element.WriteXmlAttributes(XmlWriter)
    Element.GetAttribute(Object, Object)
    Element.SetAttribute(Object, Object, Object)
    Element.CanAddChild(Element)
    Element.Name
    Element.Children
    Element.Attributes
    Element.Parent
    Element.Id
    Element.OwnerDocument
    Element.Text
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Chart.SvgBase
    Assembly: Syncfusion.Chart.Base.dll
    Syntax
    public sealed 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 element height.

    Declaration
    public Length Height { get; set; }
    Property Value
    Type Description
    Length

    The height.

    HRef

    Gets or sets the image referance.

    Declaration
    public string HRef { get; set; }
    Property Value
    Type Description
    System.String

    The referance.

    Width

    Gets or sets the element width.

    Declaration
    public Length Width { get; set; }
    Property Value
    Type Description
    Length

    The width.

    X

    Gets or sets the X coordinate.

    Declaration
    public Length X { get; set; }
    Property Value
    Type Description
    Length

    The X coordinate.

    Y

    Gets or sets the Y coordinate.

    Declaration
    public Length Y { get; set; }
    Property Value
    Type Description
    Length

    The Y coordinate.

    Methods

    DrawSelf(Graphics)

    Draws the element to specified System.Drawing.Graphics.

    Declaration
    protected override void DrawSelf(Graphics g)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    The System.Drawing.Graphics.

    Overrides
    SuperElement.DrawSelf(Graphics)

    FromImage(Image, Single, Single, Single, Single)

    Creates the ImageElement instance by the specified System.Drawing.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 System.Drawing.Image.

    System.Single x

    The x-location of the element.

    System.Single y

    The y-location of the element.

    System.Single width

    The width of the element.

    System.Single height

    The height of the element.

    Returns
    Type Description
    ImageElement

    The ImageElement instance.

    Implements

    IElement
    IStrokeAttributes
    IFillAttributes
    ITransformAttribute
    IStyleAttribute
    IFontAttributes
    IViewBoxAttribute
    IOpacityAttribute
    IClipingAttribute
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved