PDF File Writer Class Library - Author Uzi Granot
PdfContentsDrawImage Method (PdfImage, Double, Double, Double) |
Draw image (Height is calculated from width as per aspect ratio)
Namespace: PdfFileWriter
Assembly: PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)
Syntax
C#
public void DrawImage( PdfImage Image, double OriginX, double OriginY, double Width )
Parameters
- Image
- Type: PdfFileWriterPdfImage
PdfImage resource - OriginX
- Type: SystemDouble
Origin X - OriginY
- Type: SystemDouble
Origin Y - Width
- Type: SystemDouble
Display width
Remarks
The chart will be stretched or shrunk to fit the display width
and display height. Use PdfImage.ImageSize(...) or
PdfImage.ImageSizePosition(...) to ensure correct aspect ratio
and positioning.
See Also