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.

Parameters:
colorcolor to be converted to a hexadecimal string representation
Returns:
the hexadecimal string representation of the color

Definition at line 2061 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(" ") +
                 Double2String(b/255.,3);
  return rgb;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index