Compares two FreeImage bitmaps.

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

Syntax

C#
public static bool Compare(
	FIBITMAP dib1,
	FIBITMAP dib2,
	FREE_IMAGE_COMPARE_FLAGS flags
)
Visual Basic (Declaration)
Public Shared Function Compare ( _
	dib1 As FIBITMAP, _
	dib2 As FIBITMAP, _
	flags As FREE_IMAGE_COMPARE_FLAGS _
) As Boolean
Visual C++
public:
static bool Compare(
	FIBITMAP dib1, 
	FIBITMAP dib2, 
	FREE_IMAGE_COMPARE_FLAGS flags
)

Parameters

dib1
Type: FreeImageAPI..::.FIBITMAP
The first bitmap to compare.
dib2
Type: FreeImageAPI..::.FIBITMAP
The second bitmap to compare.
flags
Type: FreeImageAPI..::.FREE_IMAGE_COMPARE_FLAGS
Determines which components of the bitmaps will be compared.

Return Value

True in case both bitmaps match the compare conditions, false otherwise.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also