ComponentOne Word for UWP
C1.UWP.Word Assembly / C1.Xaml.Word.Canvas Namespace / PictureShape Class / PictureShape Constructor / PictureShape Constructor(WriteableBitmap,Size,ContentAlignment,ImageScaling)
The Image contained in the new PictureShape.
The size of the cell that will contain the image, in pixels (used for aligning the image).
A C1.Xaml.Word.ContentAlignment 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
    PictureShape Constructor(WriteableBitmap,Size,ContentAlignment,ImageScaling)
    In This Topic
    Initializes a new instance of an PictureShape.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal img As WriteableBitmap, _
       ByVal cellSize As Size, _
       ByVal align As ContentAlignment, _
       ByVal scale As ImageScaling _
    )
    public PictureShape( 
       WriteableBitmap img,
       Size cellSize,
       ContentAlignment align,
       ImageScaling scale
    )

    Parameters

    img
    The Image contained in the new PictureShape.
    cellSize
    The size of the cell that will contain the image, in pixels (used for aligning the image).
    align
    A C1.Xaml.Word.ContentAlignment value that specifies the position of the image in the cell.
    scale
    An ImageScaling value that specifies the image scaling within the cell.
    See Also