Logo Search packages:      
Sourcecode: adesklets version File versions

void imlib_polygon_get_bounds ( ImlibPolygon  poly,
int *  px1,
int *  py1,
int *  px2,
int *  py2 
)

Parameters:
poly A polygon.
px1 X coordinate of the upper left corner.
py1 Y coordinate of the upper left corner.
px2 X coordinate of the lower right corner.
py2 Y coordinate of the lower right corner.
Calculates the bounding area of the polygon poly. (px1, py1) defines the upper left corner of the bounding box and (px2, py2) defines it's lower right corner.

Definition at line 5804 of file imlib2.c.

{
   if (!ctx)
      ctx = imlib_context_new();
   CHECK_PARAM_POINTER("imlib_polygon_get_bounds", "polygon", poly);
   __imlib_polygon_get_bounds((ImlibPoly) poly, px1, py1, px2, py2);
}


Generated by  Doxygen 1.6.0   Back to index