[]
Creates a background picture from an existing file. Returns the IBackgroundPicture object that represents the new background picture.
IBackgroundPicture AddPicture(string filename, double left, double top, double width, double height)
| Type | Name | Description |
|---|---|---|
| string | filename | The file from which the object is to be created |
| double | left | The position (in points) of the upper-left corner of the destination rectangle relative to the upper-left corner of the document. |
| double | top | The position (in points) of the upper-left corner of the destination rectangle relative to the top of the document. |
| double | width | The width of the destination rectangle, in points. |
| double | height | The height of the destination rectangle, in points. |
| Type | Description |
|---|---|
| IBackgroundPicture | The IBackgroundPictureThe object. |
Creates a background picture from an existing stream. Returns the IBackgroundPicture object that represents the new background picture.
IBackgroundPicture AddPicture(Stream stream, ImageType type, double left, double top, double width, double height)
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream from which the object is to be created. |
| ImageType | type | Specifies the type of background picture to create. |
| double | left | The position (in points) of the upper-left corner of the destination rectangle relative to the upper-left corner of the document. |
| double | top | The position (in points) of the upper-left corner of the destination rectangle relative to the top of the document. |
| double | width | The width of the destination rectangle, in points. |
| double | height | The height of the destination rectangle, in points. |
| Type | Description |
|---|---|
| IBackgroundPicture | The IBackgroundPictureThe object. |