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

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

Defines the color used for all filling operations.

Affected filling operations are: filled rectangles and cell backgrounds. 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.

grayscale indicates the gray level. Value between 0 and 255
See also:
SetDrawColor(), SetTextColor(), Rect(), Cell(), MultiCell()

Definition at line 337 of file pdfcolor.cpp.

References wxPdfColour::GetColor(), m_colorFlag, m_fillColor, m_page, m_textColor, and OutAscii().

Referenced by wxPdfBarCodeCreator::I25(), RegularPolygon(), SetFillColor(), StarPolygon(), and wxPdfTable::WriteRow().

  wxPdfColour tempColor(grayscale);
  m_fillColor = tempColor;
  m_colorFlag = (m_fillColor != m_textColor);
  if (m_page > 0)

Generated by  Doxygen 1.6.0   Back to index