FigureArea
Calculates arbitrary figure outline coordinate
int FigureArea(
const FIG_HEADER *figure,
const int sizeX,
const int sizeY,
int *x1,
int *y1,
int *x2,
int *y2
)
Parameters
*figure
|
Figure data structure address
|
sizeX
|
Image X size
|
sizeY
|
Image Y size
|
*x1
|
Upper left X coordinate storage space (output)
|
*y1
|
Upper left Y coordinate storage space (output)
|
*x2
|
Lower right X coordinate storage space (output)
|
*y2
|
Lower right Y coordinate storage space (output)
|
Return Value
NORMAL(0): Successful completion
ERROR(-1): Unsuccessful completion (when specifying NULL)
Description
Calculates the outline coordinates of the area which is drawn by the specified figure.
Notes