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

void wxPdfDocument::Line ( double  x1,
double  y1,
double  x2,
double  y2 
) [virtual]

Draws a line between two points.

x1Abscissa of first point
y1Ordinate of first point
x2Abscissa of second point
y2Ordinate of second point
See also:
SetLineWidth(), SetDrawColor()

Definition at line 873 of file pdfgraphics.cpp.

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

Referenced by Arrow(), wxPdfBarCodeCreator::PostNet(), TextBox(), wxPdfTable::WriteRow(), WriteXmlCell(), and wxPdfBarCodeCreator::ZipCodeDrawDigitBars().

  // Draw a line
  OutAscii(Double2String(x1*m_k,2) + wxString(_T(" ")) +
           Double2String((m_h-y1)*m_k,2) + wxString(_T(" m ")) +
           Double2String(x2*m_k,2) + wxString(_T(" ")) +
           Double2String((m_h-y2)*m_k,2) + wxString(_T(" l S")));

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