Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.ReadImageResolution

The function retrieves the horizontal and vertical resolution of an image file.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.ReadImageResolution"; PDF; Container { ; Index } )   More

Parameters

Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
Container The image container value. Pass the container field or a variable with the container content. $image
Index The index of the image for multi image files. 1 Optional

Result

Returns the x and y resolution values as text separated by newline character.

Description

The function retrieves the horizontal and vertical resolution of an image file.
The image resolution is a user defined value that can be stored in certain image formats such as Bitmap or TIFF.
The function returns zero values if the image format does not support a resolution record or if no values are stored in the image file, the image resolution is then 72 DPI.

See also ReadImageResolution function in DynaPDF manual.

See also

Example Databases

This function checks for a license.

Created 18th August 2014, last changed 18th August 2014


DynaPDF.ReadImageFormat - DynaPDF.Rectangle