PageAddImage Method (Stream, Rectangle, Int32, Int32, Boolean)
Adds image on page and places it depend on image rectangle position.

Namespace: Aspose.Pdf
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.3
Syntax
public void AddImage(
	Stream imageStream,
	Rectangle imageRect,
	int imageWidth,
	int imageHeight,
	bool saveImageProportions
)

Parameters

imageStream
Type: System.IOStream
The stream of the image.
imageRect
Type: Aspose.PdfRectangle
The default position of the image on page.
imageWidth
Type: SystemInt32
The width of the image.
imageHeight
Type: SystemInt32
The height of the image.
saveImageProportions
Type: SystemBoolean
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