LBitmapRgn::LBitmapRgn
#include "ltwrappr.h"
L_VOID LBitmapRgn::LBitmapRgn(void)
L_VOID LBitmapRgn::LBitmapRgn(pLBitmap, uCombineMode = L_RGN_SET)
LBitmapBase L_FAR * pLBitmap; |
/* pointer to the LBitmapBase object */ |
L_UINT uCombineMode; |
/* flag that indicates the action to take with the bitmap region */ |
Constructs an LBitmapRgn object.
Parameter |
Description |
pLBitmap |
Pointer to the LBitmapBase object to be associated with the new LBitmapRgn object. All region functions will operate on the LBitmapBase object's bitmap. |
uCombineMode |
Flag that indicates the action to take with the bitmap region. For a list of possible values refer to Creating a Bitmap Region. |
Returns
None
Comments
LBitmapRgn::LBitmapRgn(void) constructs an LBitmapRgn object.
LBitmapRgn::LBitmapRgn(pLBitmap, uCombineMode = L_RGN_SET) constructs an LBitmapRgn object and initializes it with the specified LBitmapBase object's bitmap and region, if one is defined. The uCombineMode parameter becomes the class object's region combine mode for any functions that set a region.
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: |
Example
This is an example for LBitmapRgn::LBitmapRgn(void):
L_VOID TestFunction()
{
// this will call the default constructor and destructor when it is out of scope
LBitmapRgn MyRgn;
//…
}
This is an example for LBitmapRgn::LBitmapRgn(pLBitmap, uCombineMode):
L_VOID TestFunction()
{
LBitmapBase LeadBitmap ;
LBitmapRgn *pMyRgn;
LeadBitmap.Load(TEXT("Image3.cmp"), 8, ORDER_BGR);
pMyRgn = new LBitmapRgn(&LeadBitmap,L_RGN_ANDNOTBITMAP);
// do process here
// ...
// call destructor for LBitmapRgn
delete pMyRgn ;
//…
}