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

void wxPdfDocument::SetTextColor ( const unsigned char  grayscale ) [virtual]

Defines the color used for text.

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:
grayscaleindicates the gray level. Value between 0 and 255
See also:
SetDrawColor(), SetFillColor(), Text(), Cell(), MultiCell()

Definition at line 406 of file pdfcolor.cpp.

References m_colorFlag, m_fillColor, and m_textColor.

Referenced by SetTextColor(), and WriteXmlCell().

{
  wxPdfColour tempColor(grayscale);
  m_textColor = tempColor;
  m_colorFlag = (m_fillColor != m_textColor);
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index