L_ExtractObjects_CalcContentBound

Summary

Calculates the minimum bounding rectangle containing all pixel content in the specified bounds.

Syntax

#include "l_bitmap.h"

L_LTIMGCOR_API L_INT L_ExtractObjects_CalcContentBound(pData, pContentBoundBuffer, uContentBoundCount, pOptions)

Parameters

pEXOBJ_DATA pData

Pointer to an EXOBJ_DATA structure containing the extracted object's information.

EXOBJ_CONTENTBOUND *pContentBoundBuffer

Pointer to an EXOBJ_CONTENTBOUND structure to be updated with the bounds. This value cannot be null.

L_UINT uContentBoundCount

The length of pContentBoundBuffer.

pEXOBJ_CONTENTBOUND_OPTIONS pOptions

Additional options. This value cannot be null.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

If pSiblings is updated for any objects of pOptions->pObjectsOfInterest, they will be considered when determining the content bound.

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

See Also

Functions

Example

For an example, refer to L_ExtractObjectsBitmap.

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 API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.