Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Raster imaging C++ Class library help

LBitmapRgn::HolesRemovalRgn

Show in webframe

#include "ltwrappr.h"

virtual L_INT LBitmapRgn::HolesRemovalRgn(uFlags = 0)

L_UINT32 uFlags;

/* flags */

Removes all the holes in a region.

Parameter

Description

uFlags

Reserved for future use. Must be 0.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This function is designed to work on bitmaps that have a region. It removes the holes from the bitmaps region. If this function is used with a bitmap that does not have a region, the "Invalid Parameter" error is returned.

This function supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.

This function supports signed data images.

This function supports 32-bit grayscale images.

Required DLLs and Libraries

LTIMGEFX

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64.

See Also

Functions:

LBitmap::IntensityDetect, LBitmap::SpatialFilter, LBitmap::BinaryFilter, LBitmap::MaxFilter, LBitmap::MinFilter, LBitmapRgn::SetRgnMagicWand, LBitmap::Smooth, LBitmap::BorderRemove, LBitmap::InvertedText, LBitmap::DotRemove, LBitmap::HolePunchRemove, LBitmap::AutoBinarize, LBitmap::DynamicBinary, LBitmap::AutoBinary, Class Members

Topics:

Working with the Existing Bitmap Region

 

Raster Image Functions: Creating and Using a Region

 

Color Halftones and Halftone Images

Example

This example applies the holes removal filter

L_INT LBitmapRgn__HolesRemovalRgnExample(LBitmapRgn * LRgnWnd)
{
   L_INT nRet;
   // you must use LBitmapRgn::SetRgnMagicWand 
   // before calling this function.
   nRet = LRgnWnd->HolesRemovalRgn();
   return nRet;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.