1
0

BMPLoader.h 585 B

1234567891011121314151617181920212223
  1. #ifndef NULLSOFT_PNG_PNGLOADER_H
  2. #define NULLSOFT_PNG_PNGLOADER_H
  3. #include <api/service/svcs/svc_imgload.h>
  4. class ifc_xmlreaderparams;
  5. class BMPLoader : public svc_imageLoader
  6. {
  7. public:
  8. // service
  9. static const char *getServiceName() { return "BMP loader"; }
  10. virtual int isMine(const wchar_t *filename);
  11. virtual const wchar_t *mimeType();
  12. virtual int getHeaderSize();
  13. virtual int testData(const void *data, int datalen);
  14. virtual ARGB32 *loadImage(const void *data, int datalen, int *w, int *h, ifc_xmlreaderparams *params=NULL);
  15. protected:
  16. RECVS_DISPATCH;
  17. };
  18. #endif