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

int wxPdfDocument::CoonsPatchGradient ( const wxPdfCoonsPatchMesh mesh,
double  minCoord = 0,
double  maxCoord = 1 
) [virtual]

Defines a coons patch mesh gradient shading.

mesh coons patch mesh to be used for the gradient
minCoord minimal coordinate of the mesh
maxCoord maximal coordinate of the mesh

Definition at line 1949 of file pdfgraphics.cpp.

References wxPdfCoonsPatchMesh::Ok().

  int n = 0;
  if (mesh.Ok())
    n = (*m_gradients).size()+1;
    (*m_gradients)[n] = new wxPdfCoonsPatchGradient(mesh, minCoord, maxCoord);
    wxLogError(_("wxPdfDocument::CoonsPatchGradient: Mesh is invalid."));
  return n;

Generated by  Doxygen 1.6.0   Back to index