PageAddImage Method (Stream, Rectangle, Int32, Int32, Boolean) |
Adds image on page and places it depend on image rectangle position.
Namespace: Aspose.PdfAssembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.3
Syntaxpublic void AddImage(
Stream imageStream,
Rectangle imageRect,
int imageWidth,
int imageHeight,
bool saveImageProportions
)
Public Sub AddImage (
imageStream As Stream,
imageRect As Rectangle,
imageWidth As Integer,
imageHeight As Integer,
saveImageProportions As Boolean
)
public:
void AddImage(
Stream^ imageStream,
Rectangle^ imageRect,
int imageWidth,
int imageHeight,
bool saveImageProportions
)
member AddImage :
imageStream : Stream *
imageRect : Rectangle *
imageWidth : int *
imageHeight : int *
saveImageProportions : bool -> unit
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