L_Rect_Inflate

Summary

Inflates the specified L_RECT structure by the specified amount.

Syntax

#include "LtPrimitives.h"

L_LTKRN_API L_VOID L_Rect_Inflate(rect, size)

Parameters

L_RECT* rect

Pointer to the L_RECT to set.

const L_SIZE* size

The amount to inflate the L_RECT.

Returns

None.

Comments

The inflation along an axis is in two directions (minus direction and plus direction). For example, if a 50 by 50 rectangle is inflated by 50 in the x-axis, the resulting rectangle will be 150 units long (the original 50, plus the 50 in the minus direction, and plus the 50 in the plus direction). The rectangle's geometric center is maintained.

If either size.cx or size.cy is negative, the L_RECT is deflated in the corresponding direction.

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

See Also

Structures

Topics

Help Version 22.0.2023.7.11
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 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.