virtual L_BOOL LBitmapBase::HasRgn()
Determines whether the bitmap has a region.
Value | Meaning |
---|---|
TRUE | The specified bitmap has a region. |
FALSE | The specified bitmap does not have a region. |
When a bitmap has a region, the LEADTOOLS functions that modify the pixel values (for example LBitmap::Posterize) act on the region, rather than the whole bitmap. In addition, the LEADTOOLS functions that flip, reverse, rotate, shear, or resize a bitmap also transform the region to match the bitmap. For example, if you were to shear the bitmap that had a rectangular region, the region would become a parallelogram.
To remove a bitmap region, use the LBitmapRgn::Free function.
Win32, x64.
L_INT LBitmapBase__HasRgnExample()
{
L_INT nRet;
LBitmapBase MyBitmap;
MyBitmap.SetFileName(MAKE_IMAGE_PATH(TEXT("image1.cmp")));
nRet =MyBitmap.Load(24);
if(nRet !=SUCCESS)
return nRet;
/*……create a region for the bitmap…..*/
/*……….*/
if(MyBitmap.HasRgn())
nRet = MyBitmap.Free();
return nRet;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document