formZ SDK | 5.0 API Reference | System | Runtime Library (FZRT) | Graphics

fzrt_inset_rect

Description

Insets a rectangle. This function increases or decreases the width and height of the specified rectangle. It adds dx units to the left and subtracts dx units from the right side of the rectangle and adds dy units to the top and subtracts dy units from the bottom side. The dx and dy parameters are signed values; positive values decrease the width and height, and negative values increase them.

Plugin Prototype

void fzrt_inset_rect(

fzrt_rect *

r,

short

dx,

short

dy )

Parameters

r [Input, Result]

pointer to a rectangle structure to inset. On return it contain the new inset rectangle

dx [Input]

the amount to inset the left and right edges

dy [Input]

the amount to inset the top and bottom edges

Availability

5.0.0.0

See Also

fzrt_offset_rect

Function Set

fz_fzrt_graf_fset


Defined in

fzrt_api.h