ImageSizePos.ImageArea Method (Int32, Int32, PdfRectangle, ContentAlignment)

PDF File Writer

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)
Syntax
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: PdfRectangle
Adjusted drawing area rectangle
See Also