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

wxString wxPdfDocument::RGB2String ( const wxColour &  color  )  [static]

Converts a wxColour to the corresponding PDF specification.

color color to be converted to a hexadecimal string representation
the hexadecimal string representation of the color

Definition at line 2053 of file pdfdoc.cpp.

References Double2String().

Referenced by wxPdfColour::SetColor().

  double r = color.Red();
  double g = color.Green();
  double b = color.Blue();
  wxString rgb = Double2String(r/255.,3) + _T(" ") + 
                 Double2String(g/255.,3) + _T(" ") + 
  return rgb;

Generated by  Doxygen 1.6.0   Back to index