LBitmapRgn::IsPtInRgn

#include "ltwrappr.h"

virtual L_BOOL LBitmapRgn::IsPtInRgn(nRow, nCol)

virtual L_BOOL LBitmapRgn::IsPtInRgn(pPoint)

Determines whether the specified pixel is in the associated class object's bitmap region.

Parameters

L_INT nRow

The row number of the pixel.

L_INT nCol

The column number of the pixel.

LPPOINT pPoint

Pointer to a structure of type POINT to be tested.

Returns

Value Meaning
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

Platforms

Win32, x64.

See Also

Functions

Topics

Example

For an example, refer to LBitmapRgn::SetRgnRoundRect.

Help Version 21.0.2021.4.8
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help