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

PDF File Writer

ImageSizePosImageArea Method (Int32, Int32, Double, Double, Double, Double, 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,
	double DrawAreaLeft,
	double DrawAreaBottom,
	double DrawAreaWidth,
	double DrawAreaHeight,
	ContentAlignment Alignment
)

Parameters

ImageWidthPix
Type: SystemInt32
Image width in pixels.
ImageHeightPix
Type: SystemInt32
Image height in pixels.
DrawAreaLeft
Type: SystemDouble
Drawing area left side.
DrawAreaBottom
Type: SystemDouble
Drawing area bottom side.
DrawAreaWidth
Type: SystemDouble
Drawing area width.
DrawAreaHeight
Type: SystemDouble
Drawing area height.
Alignment
Type: System.DrawingContentAlignment
Content alignment.

Return Value

Type: PdfRectangle
Adjusted drawing area rectangle
See Also