LBitmapBase::HasRgn
#include "ltwrappr.h"
virtual L_BOOL LBitmapBase::HasRgn(void)
Determines whether the bitmap has a region.
Returns
| TRUE | The specified bitmap has a region. | 
| FALSE | The specified bitmap does not have a region. | 
Comments
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.
Required DLLs and Libraries
| LTDIS For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. | 
See Also
| Elements: | |
| Topics: | |
| 
 | |
| 
 | 
Example
LBitmapBase MyBitmap;
RECT Rect={10,10,200,300};
MyBitmap.SetFileName(TEXT("image1.cmp"));
MyBitmap.Load(24);
/*��create a region for the bitmap�..*/
/*���.*/
if(MyBitmap.HasRgn())
   MyBitmap.Free();