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.

x Abscissa of the origin
y Ordinate of the origin
txt String to print
outline Draw 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 0 Tr ET");

Generated by  Doxygen 1.6.0   Back to index