grad.h 431 B

123456789101112131415
  1. #ifndef _GRAD_H
  2. #define _GRAD_H
  3. #include <api/service/svcs/svc_imggen.h>
  4. #include <bfc/draw/gradient.h>
  5. class GradientImage : public svc_imageGeneratorI, public Gradient
  6. {
  7. public:
  8. static const char *getServiceName() { return "Gradient image generator"; }
  9. virtual int testDesc(const wchar_t *desc);
  10. virtual ARGB32 *genImage(const wchar_t *desc, int *has_alpha, int *w, int *h, ifc_xmlreaderparams *params=NULL);
  11. };
  12. #endif