Sets 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 void SetResolutionX(
	FIBITMAP dib,
	uint res
)
Visual Basic (Declaration)
Public Shared Sub SetResolutionX ( _
	dib As FIBITMAP, _
	res As UInteger _
)
Visual C++
public:
static void SetResolutionX(
	FIBITMAP dib, 
	unsigned int res
)

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
res
Type: System..::.UInt32
The new 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