Subversion Repositories Scribus

Rev

Rev 15677 | Go to most recent revision | 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;
19737 fschmid 18
        int layerCount;
15677 christoph 19
private:
20
        static bool gm_initialized;
21
        bool readCMYK(Image *input, RawImage *output, int width, int height);
22
        bool readRGB(Image *input, QImage *output, int width, int height);
13960 herm 23
 
24
public:
25
        ScImgDataLoader_GMagick(void);
26
 
27
        virtual bool preloadAlphaChannel(const QString& fn, int page, int res, bool& hasAlpha);
28
        virtual void loadEmbeddedProfile(const QString& fn, int page = 0);
29
        virtual bool loadPicture(const QString& fn, int page, int res, bool thumbnail);
30
        virtual bool useRawImage() { return m_useRawImage; }
15677 christoph 31
        virtual void initGraphicsMagick();
13960 herm 32
};
33
 
13964 herm 34
#endif
35