Retrieves a DIB's resolution in X-direction measured in 'dots per inch' (DPI) and not in 'dots per meter'.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static uint GetResolutionX(
	FIBITMAP dib
)
Visual Basic (Declaration)
Public Shared Function GetResolutionX ( _
	dib As FIBITMAP _
) As UInteger
Visual C++
public:
static unsigned int GetResolutionX(
	FIBITMAP dib
)

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.

Return Value

The resolution in 'dots per inch'.

Exceptions

ExceptionCondition
System..::.ArgumentNullException dib is null.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also