PDF File Writer Class Library - Author Uzi Granot
ImageSizePosImageSize Method |
Calculate best fit to preserve aspect ratio
Namespace: PdfFileWriter
Assembly: PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)

C#
public static SizeD ImageSize( int ImageWidthPix, int ImageHeightPix, double DrawAreaWidth, double DrawAreaHeight )
Parameters
- ImageWidthPix
- Type: SystemInt32
Image width in pixels. - ImageHeightPix
- Type: SystemInt32
Image height in pixels. - DrawAreaWidth
- Type: SystemDouble
Drawing area width. - DrawAreaHeight
- Type: SystemDouble
Drawing area height.
Return Value
Type: SizeDImage size in user units.
