Page.AddImage
Contents
[
Hide
]AddImage(Stream, Rectangle)
Adds image onto the page and locates it in the middle of specified rectangle saving image’s proportion.
public void AddImage(Stream imageStream, Rectangle imageRect)
Parameter | Type | Description |
---|---|---|
imageStream | Stream | The stream of the image. |
imageRect | Rectangle | The position of the image. |
See Also
- class Rectangle
- class Page
- namespace Aspose.Pdf
- assembly Aspose.PDF
AddImage(string, Stream, Rectangle)
Adds searchable image onto the page and locates it in the middle of specified rectangle saving image’s proportion.
public void AddImage(string hocr, Stream imageStream, Rectangle imageRect)
Parameter | Type | Description |
---|---|---|
hocr | String | The hocr of the image. |
imageStream | Stream | The stream of the image. |
imageRect | Rectangle | The position of the image. |
See Also
- class Rectangle
- class Page
- namespace Aspose.Pdf
- assembly Aspose.PDF
AddImage(Stream, Rectangle, int, int, bool)
Adds image on page and places it depend on image rectangle position.
public void AddImage(Stream imageStream, Rectangle imageRect, int imageWidth, int imageHeight,
bool saveImageProportions)
Parameter | Type | Description |
---|---|---|
imageStream | Stream | The stream of the image. |
imageRect | Rectangle | The default position of the image on page. |
imageWidth | Int32 | The width of the image. |
imageHeight | Int32 | The height of the image. |
saveImageProportions | Boolean | If the flag set to true than image placed in rectangle position; otherwise, the size of rectange is becoming equal to image size. |
See Also
- class Rectangle
- class Page
- namespace Aspose.Pdf
- assembly Aspose.PDF
AddImage(string, Rectangle)
Adds image onto the page and locates it in the middle of specified rectangle saving image’s proportion.
public void AddImage(string imagePath, Rectangle rectangle)
Parameter | Type | Description |
---|---|---|
imagePath | String | The path to image. |
rectangle | Rectangle | The position of the image. |
See Also
- class Rectangle
- class Page
- namespace Aspose.Pdf
- assembly Aspose.PDF