lcPaint_PtbufAddRect Home

Adds a set of points into a points buffer. The points represent a rectangle shape.

 BOOL lcPaint_PtbufAddRect (
   HANDLE hPtbuf,
   double Xc,
   double Yc,
   double Width,
   double Height,
   double Angle,
   double Radius,
   int Resol
 );

Parameters
hPtbuf
  Handle to points buffer.
Xc Yc
  Center point coordinates.
Width
  Width of a rectangle.
Height
  Height of a rectangle.
Angle
  Rotation angle relative to rectangle's center.
Radius
  Corners radius. Can be zero.
Resol
  Resolution for corner arcs (if exist). The value means a number of points per 360 degrees.
Can be only the following vales: 0, 16, 32, 64, 128, 256, 512.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

Remarks

  To know the number of points was added by this function, read the global property LC_PROP_G_PTBUFNEWPTS just after the function execution.

See Also

  lcPaint_PtbufAddRect2lcPaint_PtbufAddRect3