menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Picture - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Picture

    Represents an image.

    Inheritance
    System.Object
    EntityBase
    XDLSSerializableBase
    WidgetBase
    ParagraphItem
    Picture
    Implements
    IXDLSSerializable
    IPicture
    IParagraphItem
    IEntityBase
    ILeafWidget
    IWidget
    Inherited Members
    EntityBase.Document
    EntityBase.DocumentEx
    EntityBase.Owner
    EntityBase.SetOwner(IEntityBase)
    ParagraphItem.m_iStartIndex
    ParagraphItem.OwnerParagraph
    ParagraphItem.SetOwnerParagraph(IParagraph, Int32)
    ParagraphItem.StartIndex
    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()
    WidgetBase.DrawImpl(CustomGraphics, LayoutedWidget)
    WidgetBase.IWidget.LayoutInfo
    WidgetBase.m_layoutInfo
    XDLSSerializableBase.IXDLSSerializable.ReadXmlAttributes(IXDLSAttributeReader)
    XDLSSerializableBase.IXDLSSerializable.ReadXmlContent(IXDLSContentReader)
    XDLSSerializableBase.IXDLSSerializable.RestoreReference(String, Int32)
    XDLSSerializableBase.IXDLSSerializable.WriteXmlAttributes(IXDLSAttributeWriter)
    XDLSSerializableBase.IXDLSSerializable.WriteXmlContent(IXDLSContentWriter)
    XDLSSerializableBase.IXDLSSerializable.XDLSHolder
    XDLSSerializableBase.m_id
    XDLSSerializableBase.RestoreReference(String, Int32)
    XDLSSerializableBase.XDLSHolder
    Namespace: Syncfusion.DLS
    Assembly: Syncfusion.DLS.Base.dll
    Syntax
    public class Picture : ParagraphItem, IXDLSSerializable, IPicture, IParagraphItem, IEntityBase, ILeafWidget, IWidget

    Constructors

    Picture(IDocument)

    Initialize constructor.

    Declaration
    public Picture(IDocument doc)
    Parameters
    Type Name Description
    IDocument doc

    Picture(Picture, IParagraph)

    Declaration
    protected Picture(Picture pic, IParagraph paragraph)
    Parameters
    Type Name Description
    Picture pic
    IParagraph paragraph

    Properties

    Height

    Gets / sets picture height.

    Declaration
    public float Height { get; set; }
    Property Value
    Type
    System.Single

    HeightScale

    Gets / sets picture height scale factor in percent.

    Declaration
    public float HeightScale { get; set; }
    Property Value
    Type
    System.Single

    Image

    Gets internal System.Drawing.Image object.

    Declaration
    public Image Image { get; }
    Property Value
    Type
    System.Drawing.Image

    ImageBytes

    Gets image byte array.

    Declaration
    public byte[] ImageBytes { get; }
    Property Value
    Type
    System.Byte[]

    Size

    Gets / sets size of the picture object.

    Declaration
    public SizeF Size { get; }
    Property Value
    Type
    System.Drawing.SizeF

    Width

    Gets / sets picture width.

    Declaration
    public float Width { get; set; }
    Property Value
    Type
    System.Single

    WidthScale

    Gets / sets picture width scale factor in percent.

    Declaration
    public float WidthScale { get; set; }
    Property Value
    Type
    System.Single

    Methods

    Clone(IParagraph)

    Clones itself.

    Declaration
    public override IParagraphItem Clone(IParagraph paragraph)
    Parameters
    Type Name Description
    IParagraph paragraph
    Returns
    Type
    IParagraphItem
    Overrides
    ParagraphItem.Clone(IParagraph)

    CreateLayoutInfo()

    Declaration
    protected override void CreateLayoutInfo()
    Overrides
    WidgetBase.CreateLayoutInfo()

    InitXDLSHolder()

    Declaration
    protected override void InitXDLSHolder()
    Overrides
    XDLSSerializableBase.InitXDLSHolder()

    LoadImage(Byte[])

    Loads image as bytes array.

    Declaration
    public void LoadImage(byte[] imageBytes)
    Parameters
    Type Name Description
    System.Byte[] imageBytes

    LoadImage(Image)

    Loads image.

    Declaration
    public void LoadImage(Image image)
    Parameters
    Type Name Description
    System.Drawing.Image image

    ReadXmlAttributes(IXDLSAttributeReader)

    Declaration
    protected override void ReadXmlAttributes(IXDLSAttributeReader reader)
    Parameters
    Type Name Description
    IXDLSAttributeReader reader
    Overrides
    ParagraphItem.ReadXmlAttributes(IXDLSAttributeReader)

    ReadXmlContent(IXDLSContentReader)

    Declaration
    protected override bool ReadXmlContent(IXDLSContentReader reader)
    Parameters
    Type Name Description
    IXDLSContentReader reader
    Returns
    Type
    System.Boolean
    Overrides
    XDLSSerializableBase.ReadXmlContent(IXDLSContentReader)

    WriteXmlAttributes(IXDLSAttributeWriter)

    Declaration
    protected override void WriteXmlAttributes(IXDLSAttributeWriter writer)
    Parameters
    Type Name Description
    IXDLSAttributeWriter writer
    Overrides
    ParagraphItem.WriteXmlAttributes(IXDLSAttributeWriter)

    WriteXmlContent(IXDLSContentWriter)

    Declaration
    protected override void WriteXmlContent(IXDLSContentWriter writer)
    Parameters
    Type Name Description
    IXDLSContentWriter writer
    Overrides
    XDLSSerializableBase.WriteXmlContent(IXDLSContentWriter)

    Explicit Interface Implementations

    ILeafWidget.Measure(CustomGraphics)

    Declaration
    SizeF ILeafWidget.Measure(CustomGraphics cg)
    Parameters
    Type Name Description
    CustomGraphics cg
    Returns
    Type
    System.Drawing.SizeF

    IWidget.Draw(CustomGraphics, LayoutedWidget)

    Declaration
    void IWidget.Draw(CustomGraphics cg, LayoutedWidget ltWidget)
    Parameters
    Type Name Description
    CustomGraphics cg
    LayoutedWidget ltWidget

    Implements

    IXDLSSerializable
    IPicture
    IParagraphItem
    IEntityBase
    ILeafWidget
    IWidget
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved