Subversion Repositories Scribus

Rev

Rev 13964 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
13960 herm 1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
#ifndef SCIMGDATALOADER_GMAGICK_H
8
#define SCIMGDATALOADER_GMAGICK_H
9
 
10
#include "scimgdataloader.h"
15677 christoph 11
#include <magick/api.h>
13960 herm 12
 
13
class ScImgDataLoader_GMagick : public ScImgDataLoader
14
{
15
protected:
16
        void initSupportedFormatList();
17
        bool m_useRawImage;
15677 christoph 18
private:
19
        static bool gm_initialized;
20
        bool readCMYK(Image *input, RawImage *output, int width, int height);
21
        bool readRGB(Image *input, QImage *output, int width, int height);
13960 herm 22
 
23
public:
24
        ScImgDataLoader_GMagick(void);
25
 
26
        virtual bool preloadAlphaChannel(const QString& fn, int page, int res, bool& hasAlpha);
27
        virtual void loadEmbeddedProfile(const QString& fn, int page = 0);
28
        virtual bool loadPicture(const QString& fn, int page, int res, bool thumbnail);
29
        virtual bool useRawImage() { return m_useRawImage; }
15677 christoph 30
        virtual void initGraphicsMagick();
13960 herm 31
};
32
 
13964 herm 33
#endif
34