 | 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.ContentAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.12.0+5e7853f3b1a241c2ec0dd9e8fc4b9015d17a37d8
Syntaxpublic 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| Exception | Condition |
|---|
| ArgumentException | if the transform object has already been closed |
| ArgumentException | if the transform is non-invertible |
See Also