1 #ifndef MSP_GRAPHICS_QUARTZLOADER_H_
2 #define MSP_GRAPHICS_QUARTZLOADER_H_
4 #include <msp/graphics/imageloader.h>
9 class QuartzLoader: public RegisteredImageLoader<QuartzLoader>
17 QuartzLoader(IO::Seekable &);
18 virtual ~QuartzLoader();
20 /* Experimentally found value, works for png and jpeg at least. 8 bytes
21 is not enough for Quartz to recognize png. */
22 static unsigned get_signature_size() { return 12; }
23 static bool detect(const std::string &);
25 virtual void load(Image::Data &);
28 } // namespace Graphics