ComponentOne Excel for .NET
C1.Excel Assembly / C1.Excel Namespace / XLPictureShape Class / XLPictureShape Constructor / XLPictureShape Constructor(Object,Size,XLAlignHorz,XLAlignVert,ImageScaling)
The image source (binary data, Image, GcBitmap, base64).
The size of the cell that will contain the image, in pixels (used for aligning the image).
A XLAlignHorz value that specifies the position of the image in the cell.
A XLAlignVert value that specifies the position of the image in the cell.
An ImageScaling value that specifies the image scaling within the cell.

In This Topic
    XLPictureShape Constructor(Object,Size,XLAlignHorz,XLAlignVert,ImageScaling)
    In This Topic
    Initializes a new instance of an XLPictureShape.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal source As System.Object, _
       ByVal cellSize As System.Drawing.Size, _
       ByVal align As XLAlignHorz, _
       ByVal valign As XLAlignVert, _
       ByVal scale As ImageScaling _
    )
    public XLPictureShape( 
       System.object source,
       System.Drawing.Size cellSize,
       XLAlignHorz align,
       XLAlignVert valign,
       ImageScaling scale
    )

    Parameters

    source
    The image source (binary data, Image, GcBitmap, base64).
    cellSize
    The size of the cell that will contain the image, in pixels (used for aligning the image).
    align
    A XLAlignHorz value that specifies the position of the image in the cell.
    valign
    A XLAlignVert value that specifies the position of the image in the cell.
    scale
    An ImageScaling value that specifies the image scaling within the cell.
    Remarks
    This constructor automatically calculates the image size, position, and clipping based on the cell and image sizes and on the given alignment and scaling parameters.
    See Also