Scribus
Open source desktop publishing at your fingertips
scimgdataloader_gmagick.h
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"
11 #include <magick/api.h>
12 
14 {
15 protected:
16  void initSupportedFormatList();
17  QString blendModeToString(int compositeOp);
18  int blendModeToInt(QString compositeOp);
19  bool m_useRawImage;
20  int layerCount;
21 private:
22  static bool gm_initialized;
23  bool readCMYK(Image *input, RawImage *output, int width, int height);
24  bool readRGB(Image *input, QImage *output, int width, int height);
25 
26 public:
28 
29  virtual bool preloadAlphaChannel(const QString& fn, int page, int res, bool& hasAlpha);
30  virtual void loadEmbeddedProfile(const QString& fn, int page = 0);
31  virtual bool loadPicture(const QString& fn, int page, int res, bool thumbnail);
32  virtual bool useRawImage() { return m_useRawImage; }
33  virtual void initGraphicsMagick();
34 };
35 
36 #endif
37 
Definition: scimgdataloader.h:19
Definition: rawimage.h:15
Definition: scimgdataloader_gmagick.h:13