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

void wxPdfDocument::SetDrawColor ( const wxColour &  color ) [virtual]

Defines the color used for all drawing operations.

Affected drawing operations are: lines, rectangles and cell borders. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.

Parameters:
colordefines a color composed of a red, green and blue component
See also:
SetFillColor(), SetTextColor(), Line(), Rect(), Cell(), MultiCell()

Definition at line 256 of file pdfcolor.cpp.

References wxPdfColour::GetColor(), m_drawColor, m_page, and OutAscii().

{
  wxPdfColour tempColor(color);
  m_drawColor = tempColor;
  if (m_page > 0)
  {
    OutAscii(m_drawColor.GetColor(true));
  }
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index