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

void wxPdfDocument::ClippingPolygon ( const wxPdfArrayDouble &  x,
const wxPdfArrayDouble &  y,
bool  outline = false 
) [virtual]

Define polygon as clipping area.

A clipping area restricts the display and prevents any elements from showing outside of it.

xArray with abscissa values
yArray with ordinate values
outlineDraw the outline or not. (Default false)

Definition at line 1473 of file pdfgraphics.cpp.

References Out(), OutAscii(), OutLine(), and OutPoint().

  int np = (x.GetCount() < y.GetCount()) ? x.GetCount() : y.GetCount();

  wxString op = outline ? _T("S") : _T("n");

  OutPoint(x[0], y[0]);
  int i;
  for (i = 1; i < np; i++)
    OutLine(x[i], y[i]);
  OutLine(x[0], y[0]);
  OutAscii(wxString(_T("h W ")) + op);

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index