11 #include "scribusapi.h"
12 #include "scimagestructs.h"
19 #include <QDataStream>
25 #include <QStringList>
27 #include "fpointarray.h"
36 class SCRIBUS_API
ScImage :
private QImage
42 ScImage(
int width,
int height );
72 const QImage& qImage();
74 QImage scaled(
int h,
int w, Qt::AspectRatioMode mode = Qt::IgnoreAspectRatio, Qt::TransformationMode transformMode = Qt::FastTransformation)
const;
76 int height()
const {
return QImage::height(); }
77 int width()
const {
return QImage::width(); }
78 bool hasAlpha()
const {
return QImage::hasAlphaChannel(); }
79 bool hasSmoothAlpha();
82 QByteArray ImageToArray();
84 void convertToGray(
void);
88 bool writeMonochromeDataToFilter(
ScStreamFilter* filter,
bool fromCmyk);
92 bool writePSImageToFilter(
ScStreamFilter* filter,
const QByteArray& mask,
int pl);
94 bool getAlpha(QString fn,
int page, QByteArray& alpha,
bool PDF,
bool pdf14,
int gsRes = 72,
int scaleXSize = 0,
int scaleYSize = 0);
95 bool convert2JPG(QString fn,
int Quality,
bool isCMYK,
bool isGray);
98 void applyEffect(
const ScImageEffectList& effectsList,
ColorList& colors,
bool cmyk);
101 bool createLowRes(
double scale);
104 void scaleImage(
int width,
int height);
108 void getEmbeddedProfile(
const QString & fn, QByteArray *profile,
int *components,
int page = 0);
112 bool loadPicture(
const QString & fn,
int page,
const CMSettings& cmSettings, RequestType requestType,
int gsRes,
bool *realCMYK = 0,
bool showMsg =
false);
113 bool loadPicture(
ScImageCacheProxy & cache,
bool & fromCache,
int page,
const CMSettings& cmSettings, RequestType requestType,
int gsRes,
bool *realCMYK = 0,
bool showMsg =
false);
121 void scaleImage32bpp(
int width,
int height);
124 void scaleImageGeneric(
int width,
int height);
127 void solarize(
double factor,
bool cmyk);
128 void blur(
int radius = 0);
129 void sharpen(
double radius= 0.0,
double sigma = 1.0);
130 void contrast(
int contrastValue,
bool cmyk);
131 void brightness(
int brightnessValue,
bool cmyk);
132 void invert(
bool cmyk);
135 void tritone(
ScribusDoc* doc,
ScColor color1,
int shade1,
FPointArray curve1,
bool lin1,
ScColor color2,
int shade2,
FPointArray curve2,
bool lin2,
ScColor color3,
int shade3,
FPointArray curve3,
bool lin3,
bool cmyk);
136 void quadtone(
ScribusDoc* doc,
ScColor color1,
int shade1,
FPointArray curve1,
bool lin1,
ScColor color2,
int shade2,
FPointArray curve2,
bool lin2,
ScColor color3,
int shade3,
FPointArray curve3,
bool lin3,
ScColor color4,
int shade4,
FPointArray curve4,
bool lin4,
bool cmyk);
137 void toGrayscale(
bool cmyk);
138 void doGraduate(
FPointArray curve,
bool cmyk,
bool linear);
140 bool convolveImage(QImage *dest,
const unsigned int order,
const double *kernel);
141 int getOptimalKernelWidth(
double radius,
double sigma);
142 void applyCurve(
const QVector<int>& curveTable,
bool cmyk);
Definition: sccolorprofile.h:16
Definition: sccolor.h:155
the Document Class
Definition: scribusdoc.h:90
Scribus image cache proxy.
Definition: scimagecacheproxy.h:39
Definition: cmsettings.h:37
Definition: fpointarray.h:42
Definition: scstreamfilter.h:14
Definition: scimagestructs.h:126