ImageSizePos.ImageSize Method

PDF File Writer

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)
Syntax
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: SizeD
Image size in user units.
See Also