PictureShape Constructor(Image,Size,ContentAlignment,ImageScaling)
In This Topic
Initializes a new instance of an
PictureShape.
Syntax
'Declaration
Public Function New( _
ByVal As System.Drawing.Image, _
ByVal As System.Drawing.Size, _
ByVal As System.Drawing.ContentAlignment, _
ByVal As ImageScaling _
)
public PictureShape(
System.Drawing.Image ,
System.Drawing.Size ,
System.Drawing.ContentAlignment ,
ImageScaling
)
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 System.Drawing.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