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

void PoDoFo::PdfPainter::SetClipRect ( double  dX,
double  dY,
double  dWidth,
double  dHeight 
) [inherited]

Set a clipping rectangle

dXx coordinate of the rectangle (left coordinate)
dYy coordinate of the rectangle (bottom coordinate)
dWidthwidth of the rectangle
dHeightabsolute height of the rectangle

Definition at line 409 of file PdfPainter.cpp.

References PoDoFo::PdfStream::Append(), PoDoFo::PdfPainter::m_oss, and PoDoFo::PdfPainter::m_pCanvas.

Referenced by PoDoFo::PdfTable::Draw(), PoDoFo::PdfPainter::DrawMultiLineText(), and PoDoFo::PdfPainter::SetClipRect().

    PODOFO_RAISE_LOGIC_IF( !m_pCanvas, "Call SetPage() first before doing drawing operations." );    

    m_oss << dX << " "
          << dY << " "
          << dWidth << " "
          << dHeight        
          << " re W n" << std::endl;
    m_pCanvas->Append( m_oss.str() );

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