virtual L_BOOL LBitmapBase::HasRgn()
Determines whether the bitmap has a region.
|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.
/*……create a region for the bitmap…..*/
nRet = MyBitmap.Free();
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries