[]
Initializes a new instance of an PictureShape.
public PictureShape()
Initializes a new instance of an PictureShape.
public PictureShape(WriteableBitmap img)
| Type | Name | Description |
|---|---|---|
| WriteableBitmap | img | The image contained in the new PictureShape. |
Initializes a new instance of an PictureShape.
public PictureShape(WriteableBitmap img, int x, int y)
| Type | Name | Description |
|---|---|---|
| WriteableBitmap | img | The image contained in the new PictureShape. |
| int | x | The horizontal position of the new shape with respect to the cell, in twips. |
| int | y | The vertical position of the new shape with respect to the cell, in twips. |
Initializes a new instance of an PictureShape.
public PictureShape(WriteableBitmap img, int x, int y, int width, int height)
| Type | Name | Description |
|---|---|---|
| WriteableBitmap | img | The image contained in the new PictureShape. |
| int | x | The horizontal position of the image with respect to the cell, in twips. |
| int | y | The vertical position of the image with respect to the cell, in twips. |
| int | width | The width of the image, in twips. |
| int | height | The height of the image, in twips. |
Initializes a new instance of an PictureShape.
public PictureShape(WriteableBitmap img, Rect rc)
| Type | Name | Description |
|---|---|---|
| WriteableBitmap | img | The image contained in the new PictureShape. |
| Rect | rc | A rectangle that specifies the image size and position with respect to the cell, in twips. |
Initializes a new instance of an PictureShape.
public PictureShape(WriteableBitmap img, Size cellSize, ContentAlignment align, ImageScaling scale)
| Type | Name | Description |
|---|---|---|
| WriteableBitmap | img | The Image contained in the new PictureShape. |
| Size | cellSize | The size of the cell that will contain the image, in pixels (used for aligning the image). |
| ContentAlignment | align | A ContentAlignment value that specifies the position of the image in the cell. |
| ImageScaling | scale | An ImageScaling value that specifies the image scaling within the cell. |
Initializes a new instance of an PictureShape.
public PictureShape(IShapeContainer container, WriteableBitmap img, int x, int y, int width, int height)
| Type | Name | Description |
|---|---|---|
| IShapeContainer | container | IShapeContainer object that owns the shape container. |
| WriteableBitmap | img | The image contained in the new PictureShape. |
| int | x | The horizontal position of the image with respect to the sheet, in twips. |
| int | y | The vertical position of the image with respect to the sheet, in twips. |
| int | width | The width of the image, in twips. |
| int | height | The height of the image, in twips. |
Initializes a new instance of an PictureShape.
public PictureShape(C1Bitmap bmp)
| Type | Name | Description |
|---|---|---|
| C1Bitmap | bmp | The specified bitmap object contained in the new PictureShape. |
Initializes a new instance of an PictureShape.
public PictureShape(C1Bitmap bmp, int x, int y)
| Type | Name | Description |
|---|---|---|
| C1Bitmap | bmp | The specified bitmap object contained in the new PictureShape. |
| int | x | The horizontal position of the new shape with respect to the cell, in twips. |
| int | y | The vertical position of the new shape with respect to the cell, in twips. |
Initializes a new instance of an PictureShape.
public PictureShape(C1Bitmap bmp, int x, int y, int width, int height)
| Type | Name | Description |
|---|---|---|
| C1Bitmap | bmp | The specified bitmap object contained in the new PictureShape. |
| int | x | The horizontal position of the image with respect to the cell, in twips. |
| int | y | The vertical position of the image with respect to the cell, in twips. |
| int | width | The width of the image, in twips. |
| int | height | The height of the image, in twips. |
Initializes a new instance of an PictureShape.
public PictureShape(C1Bitmap bmp, Rect rc)
| Type | Name | Description |
|---|---|---|
| C1Bitmap | bmp | The specified bitmap object contained in the new PictureShape. |
| Rect | rc | A rectangle that specifies the image size and position with respect to the cell, in twips. |
Initializes a new instance of an PictureShape.
public PictureShape(C1Bitmap bmp, Size cellSize, ContentAlignment align, ImageScaling scale)
| Type | Name | Description |
|---|---|---|
| C1Bitmap | bmp | The specified bitmap object contained in the new PictureShape. |
| Size | cellSize | The size of the cell that will contain the image, in pixels (used for aligning the image). |
| ContentAlignment | align | A ContentAlignment value that specifies the position of the image in the cell. |
| ImageScaling | scale | An ImageScaling value that specifies the image scaling within the cell. |
Initializes a new instance of an PictureShape.
public PictureShape(IShapeContainer container, C1Bitmap bmp, int x, int y, int width, int height)
| Type | Name | Description |
|---|---|---|
| IShapeContainer | container | IShapeContainer object that owns the shape container. |
| C1Bitmap | bmp | The specified bitmap object contained in the new PictureShape. |
| int | x | The horizontal position of the image with respect to the sheet, in twips. |
| int | y | The vertical position of the image with respect to the sheet, in twips. |
| int | width | The width of the image, in twips. |
| int | height | The height of the image, in twips. |