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

void wxPdfDocument::ClippingText ( double  x,
double  y,
const wxString &  txt,
bool  outline = false 
) [virtual]

Define text as clipping area.

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

xAbscissa of the origin
yOrdinate of the origin
txtString to print
outlineDraw the outline or not.

Definition at line 1407 of file pdfgraphics.cpp.

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

  wxString op = outline ? _T("5") : _T("7");
  OutAscii(wxString(_T("q BT ")) +
           Double2String(x*m_k,2) + wxString(_T(" ")) +
           Double2String((m_h-y)*m_k,2) + wxString(_T(" Td ")) +
           op + wxString(_T(" Tr (")),false);
  Out(") Tj ET");

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index