SE_shape_generate_rectangle

Generates a polygon shape in the form of a rectangle, based on the supplied lower-left and upper-right points.

Usage syntax

LONG SE_shape_generate_rectangle (SE_ENVELOPE *rect, SE_SHAPE tgt_shape);

Parameters
 
rect A pointer to an SE_ENVELOPE structure defining the rectangle for the new shape
tgt_shape A handle to an active shape object, returned as the new shape
Description

Generates a polygon shape in the form of a rectangle, based on the supplied lower-left and upper-right points.

typedef struct {
LFLOAT minx;
LFLOAT miny;
LFLOAT maxx;
LFLOAT maxy;
} SE_ENVELOPE;

Returns

SE_SUCCESS
SE_COORD_OUT_OF_BOUNDS

SE_INVALID_ENVELOPE

SE_INVALID_POINTER

SE_INVALID_SHAPE

SE_INVALID_SHAPE_OBJECT

SE_OUT_OF_CLMEM

Notes

•  Ignores any CAD data in the source shape, and removes any CAD data in the target shape.