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

void wxPdfDocument::ClippingRect ( double  x,
double  y,
double  w,
double  h,
bool  outline = false 
) [virtual]

Define rectangle as clipping area.

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

Parameters:
xAbscissa of the upper-left corner
yOrdinate of the upper-left corner
wWidth of the rectangle
hHeight of the rectangle
outlineDraw the outline or not.

Definition at line 1419 of file pdfgraphics.cpp.

References Double2String(), m_h, m_k, and OutAscii().

Referenced by ClippedCell(), and SetFillGradient().

{
  wxString op = outline ? _T("S") : _T("n");
  OutAscii(wxString(_T("q ")) +
           Double2String(x*m_k,2) + wxString(_T(" ")) +
           Double2String((m_h-y)*m_k,2) + wxString(_T(" ")) +
           Double2String(w*m_k,2) + wxString(_T(" ")) +
           Double2String(-h*m_k,2) + wxString(_T(" re W ")) + op);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index