Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
LBitmapRgn::IsPtInRgn
#include "ltwrappr.h"
virtual L_BOOL LBitmapRgn::IsPtInRgn(nRow, nCol)
virtual L_BOOL LBitmapRgn::IsPtInRgn(pPoint)
L_INT nRow; |
/* row number of the pixel */ |
L_INT nCol; |
/* column number of the pixel */ |
LPPOINT pPoint; |
/* pointer to a structure of type POINT */ |
Determines whether the specified pixel is in the associated class object's bitmap region.
Parameter |
Description |
nRow |
The row number of the pixel. |
nCol |
The column number of the pixel. |
pPoint |
Pointer to a structure of type POINT to be tested. |
Returns
TRUE |
The specified pixel is in the region. |
FALSE |
The specified pixel is outside the region. |
Comments
This function uses bitmap coordinates to specify the pixel. Therefore, you must account for the view perspective of the bitmap. For more information, refer to Accounting for View Perspective.
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. |
Platforms
Win32, x64.
See Also
Functions: |
LBitmapRgn::BitmapHasRgn, LBitmapRgn::Free, LBitmapRgn::GetRgnArea, Class Members |
Topics: |
|
|
|
|
Example
For an example, refer to LBitmapRgn::SetRgnRoundRect.