Click or drag to resize
Pdftools logo

ImageMaskGetResolution Method

The resolution of an image mask on the page in DPI (dots per inch).

The resolution is the ratio between the size of the image mask and the size it uses on the page.

Namespace: PdfTools.Toolbox.Pdf.Content
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.13.0+e97f8445d0c3be91ace3fcedd60e635df5a107da
Syntax
C#
public double GetResolution(
	AffineTransform transform
)

Parameters

transform  AffineTransform
The affine transformation matrix of the image mask. Typically, this is the affine transformation matrix of ImageMaskElement.

Return Value

Double
The calculated resolution in DPI.
Exceptions
ExceptionCondition
ArgumentExceptionif the transform object has already been closed
ArgumentExceptionif the transform is non-invertible
See Also