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

int wxPdfDocument::RadialGradient ( const wxPdfColour col1,
const wxPdfColour col2,
double  x1 = 0.5,
double  y1 = 0.5,
double  r1 = 0,
double  x2 = 0.5,
double  y2 = 0.5,
double  r2 = 1,
double  intexp = 1 
) [virtual]

Defines a radial gradient shading.

Parameters:
col1first color (RGB or CMYK).
col2second color (RGB or CMYK).
x1center point of circle 1, default: 0.5 (range 0 .. 1)
y1center point of circle 1, default: 0.5 (range 0 .. 1)
r1radius of circle 1, default: 0
x2center point of circle 2, default: 0.5 (range 0 .. 1)
y2center point of circle 2, default: 0.5 (range 0 .. 1)
r2radius of circle 2, default: 1
intexpinterpolation exponent, default: 1

Definition at line 1931 of file pdfgraphics.cpp.

{
  int n = 0;
  if (ColorSpaceOk(col1, col2))
  {
    n = (*m_gradients).size()+1;
    (*m_gradients)[n] = new wxPdfRadialGradient(col1, col2, x1, y1, r1, x2, y2, r2, intexp);
  }
  else
  {
    wxLogError(_("wxPdfDocument::RadialGradient: Color spaces do not match."));
  }
  return n;
}

Generated by  Doxygen 1.6.0   Back to index