PDF File Writer Class Library - Author Uzi Granot
ImageSizePosImageArea Method (Int32, Int32, PdfRectangle, ContentAlignment) |
Adjust image drawing area for both aspect ratio and content alignment
Namespace: PdfFileWriter
Assembly: PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)

C#
public static PdfRectangle ImageArea( int ImageWidthPix, int ImageHeightPix, PdfRectangle DrawArea, ContentAlignment Alignment )
Parameters
- ImageWidthPix
- Type: SystemInt32
Image width in pixels. - ImageHeightPix
- Type: SystemInt32
Image height in pixels. - DrawArea
- Type: PdfFileWriterPdfRectangle
Drawing area rectangle - Alignment
- Type: System.DrawingContentAlignment
Content alignment.
Return Value
Type: PdfRectangleAdjusted drawing area rectangle
