8,13 → 8,17 |
#define SCIMGDATALOADER_GMAGICK_H |
|
#include "scimgdataloader.h" |
#include <magick/api.h> |
|
|
class ScImgDataLoader_GMagick : public ScImgDataLoader |
{ |
protected: |
void initSupportedFormatList(); |
bool m_useRawImage; |
private: |
static bool gm_initialized; |
bool readCMYK(Image *input, RawImage *output, int width, int height); |
bool readRGB(Image *input, QImage *output, int width, int height); |
|
public: |
ScImgDataLoader_GMagick(void); |
23,6 → 27,7 |
virtual void loadEmbeddedProfile(const QString& fn, int page = 0); |
virtual bool loadPicture(const QString& fn, int page, int res, bool thumbnail); |
virtual bool useRawImage() { return m_useRawImage; } |
virtual void initGraphicsMagick(); |
}; |
|
#endif |