ComponentOne Excel for .NET
C1.Excel Assembly / C1.Excel Namespace / XLPictureShape Class / XLPictureShape Constructor / XLPictureShape Constructor(GcBitmap,Size,XLAlignHorz,XLAlignVert,ImageScaling)
The specified bitmap object contained in the new XLPictureShape.
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(GcBitmap,Size,XLAlignHorz,XLAlignVert,ImageScaling)
    In This Topic
    Initializes a new instance of an XLPictureShape.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal bmp As GrapeCity.Documents.Imaging.GcBitmap, _
       ByVal cellSize As System.Drawing.Size, _
       ByVal align As XLAlignHorz, _
       ByVal valign As XLAlignVert, _
       ByVal scale As ImageScaling _
    )
    public XLPictureShape( 
       GrapeCity.Documents.Imaging.GcBitmap bmp,
       System.Drawing.Size cellSize,
       XLAlignHorz align,
       XLAlignVert valign,
       ImageScaling scale
    )

    Parameters

    bmp
    The specified bitmap object contained in the new XLPictureShape.
    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