TrimBlackBorder

#include "BIDocImg.H"

 

HANDLE CALLBACK TrimBlackBorder( HANDLE hDib)

Description

This function will detect the black border of the scanned image and replace the black pixels with white pixels. The function works for only monochrome, 8 and 24 bit per pixel images.

Parameters

HANDLE

hDIB

Handle of the image to trim black border.

Return values

The handle of the new DIB or NULL if an error occurred.

Programming notes

The function will not free the input DIB.

Requirements

Header :     Declared in BIDocImg.h; include BIDocImg.h.

Library :    Use BIDocImg.lib.

DLLs :       BIDocImg.dll.