LBitmapRgn::IsPtInRgn

Summary

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

Syntax

#include "ltwrappr.h"

virtual L_BOOL LBitmapRgn::IsPtInRgn(nRow, nCol)

virtual L_BOOL LBitmapRgn::IsPtInRgn(pPoint)

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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.