Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

void wxPdfDocument::Curve ( double  x0,
double  y0,
double  x1,
double  y1,
double  x2,
double  y2,
double  x3,
double  y3,
int  style = wxPDF_STYLE_DRAW 
) [virtual]

Draws a Bezier curve.

A Bezier curve is tangent to the line between the control points at either end of the curve.

Parameters:
x0,:Abscissa of start point
y0,:Ordinate of start point
x1,:Abscissa of control point 1
y1,:Ordinate of control point 1
x2,:Abscissa of control point 2
y2,:Ordinate of control point 2
x3,:Abscissa of end point
y3,:Ordinate of end point
style,:Style of rectangle (draw and/or fill)

Definition at line 995 of file pdfgraphics.cpp.

References OutAscii(), OutCurve(), and OutPoint().

{
  wxString op;
  // Draw a rectangle
  if ((style & wxPDF_STYLE_FILLDRAW) == wxPDF_STYLE_FILL)
  {
    op = _T("f");
  }
  else
  {
    if ((style & wxPDF_STYLE_FILLDRAW) == wxPDF_STYLE_FILLDRAW)
    {
      op = _T("B");
    }
    else
    {
      op = _T("S");
    }
  }

  OutPoint(x0, y0);
  OutCurve(x1, y1, x2, y2, x3, y3);
  OutAscii(op);
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index