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

void wxPdfDocument::SetTextColor ( const wxString &  name,
double  tint = 100 
) [virtual]

Defines the spot 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:
namethe name of the spot color
tintindicates the tint level. Value between 0 and 100. Default: 100.
See also:
SetDrawColor(), SetFillColor(), Text(), Cell(), MultiCell()

Definition at line 433 of file pdfcolor.cpp.

References m_colorFlag, m_fillColor, and m_textColor.

{
  wxPdfSpotColourMap::iterator spotColor = (*m_spotColors).find(name);
  if (spotColor != (*m_spotColors).end())
  {
    wxPdfColour tempColor(*(spotColor->second), tint);
    m_textColor = tempColor;
    m_colorFlag = (m_fillColor != m_textColor);
  }
  else
  {
    wxLogError(_("SetTextColor: Undefined spot color: ") + name);
  }
}

Generated by  Doxygen 1.6.0   Back to index