PDF File Writer Class Library - Author Uzi Granot
PdfImageImageSizePosition Method (Double, Double, ContentAlignment) |
Calculates image size to preserve aspect ratio and sets position.
Namespace: PdfFileWriter
Assembly: PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)

C#
public PdfRectangle ImageSizePosition( double Width, double Height, ContentAlignment Alignment )
Parameters
- Width
- Type: SystemDouble
Image display width - Height
- Type: SystemDouble
Image display height - Alignment
- Type: System.DrawingContentAlignment
Content alignment
Return Value
Type: PdfRectangleAdjusted image size and position within area.

Calculates best fit to preserve aspect ratio and adjust
position according to content alignment argument.
