Excel for WPF and Silverlight
XLPictureShape Constructor(WriteableBitmap,Size,HorizontalAlignment,VerticalAlignment,ImageScaling)

C1.WPF.Excel Namespace > XLPictureShape Class > XLPictureShape Constructor : XLPictureShape Constructor(WriteableBitmap,Size,HorizontalAlignment,VerticalAlignment,ImageScaling)
The Image contained in the new XLPictureShape.
The size of the cell that will contain the image, in pixels (used for aligning the image).
A System.Windows.HorizontalAlignment value that specifies the position of the image in the cell.
A System.Windows.VerticalAlignment value that specifies the position of the image in the cell.
An ImageScaling value that specifies the image scaling within the cell.
Initializes a new instance of an XLPictureShape.
Syntax
'Declaration
 
Public Function New( _
   ByVal img As System.Windows.Media.Imaging.WriteableBitmap, _
   ByVal cellSize As System.Windows.Size, _
   ByVal align As System.Windows.HorizontalAlignment, _
   ByVal valign As System.Windows.VerticalAlignment, _
   ByVal scale As ImageScaling _
)
public XLPictureShape( 
   System.Windows.Media.Imaging.WriteableBitmap img,
   System.Windows.Size cellSize,
   System.Windows.HorizontalAlignment align,
   System.Windows.VerticalAlignment valign,
   ImageScaling scale
)

Parameters

img
The Image 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 System.Windows.HorizontalAlignment value that specifies the position of the image in the cell.
valign
A System.Windows.VerticalAlignment 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

Reference

XLPictureShape Class
XLPictureShape Members
Overload List