PNGWriter.h 642 B

123456789101112131415161718192021
  1. #ifndef NULLSOFT_PNG_PNGLOADER_H
  2. #define NULLSOFT_PNG_PNGLOADER_H
  3. #include <api/service/svcs/svc_imgwrite.h>
  4. class ifc_xmlreaderparams;
  5. class PNGWriter : public svc_imageWriter
  6. {
  7. public:
  8. static const char *getServiceName() { return "PNG writer"; }
  9. const wchar_t * getImageTypeName() { return L"PNG"; }
  10. const wchar_t * getExtensions() { return L"png"; }
  11. int setConfig(const wchar_t * item, const wchar_t * value);
  12. int getConfig(const wchar_t * item, wchar_t * value, int valuelen);
  13. int bitDepthSupported(int depth);
  14. void * convert(const void *pixels, int bitDepth, int w, int h, int *length);
  15. protected:
  16. RECVS_DISPATCH;
  17. };
  18. #endif