Scribus
Open source desktop publishing at your fingertips
ScImage Class Reference
Inheritance diagram for ScImage:
Collaboration diagram for ScImage:

Public Types

enum  RequestType {
  CMYKData = 0, RGBData = 1, RawData = 2, OutputProfile = 3,
  Thumbnail = 4
}
 
enum  ImageEffectCode {
  EF_INVERT = 0, EF_GRAYSCALE = 1, EF_COLORIZE = 2, EF_BRIGHTNESS = 3,
  EF_CONTRAST = 4, EF_SHARPEN = 5, EF_BLUR = 6, EF_SOLARIZE = 7,
  EF_DUOTONE = 8, EF_TRITONE = 9, EF_QUADTONE = 10, EF_GRADUATE = 11
}
 

Public Member Functions

 ScImage (const QImage &image)
 
 ScImage (const ScImage &image)
 
 ScImage (int width, int height)
 
void initialize ()
 
const QImage & qImage ()
 
QImage * qImagePtr ()
 
QImage scaled (int h, int w, Qt::AspectRatioMode mode=Qt::IgnoreAspectRatio, Qt::TransformationMode transformMode=Qt::FastTransformation) const
 
int height () const
 
int width () const
 
bool hasAlpha () const
 
bool hasSmoothAlpha ()
 
QByteArray ImageToArray ()
 
void convertToGray (void)
 
bool writeRGBDataToFilter (ScStreamFilter *filter)
 
bool writeGrayDataToFilter (ScStreamFilter *filter, bool precal)
 
bool writeMonochromeDataToFilter (ScStreamFilter *filter, bool fromCmyk)
 
bool writeCMYKDataToFilter (ScStreamFilter *filter)
 
bool writePSImageToFilter (ScStreamFilter *filter, int pl)
 
bool writePSImageToFilter (ScStreamFilter *filter, const QByteArray &mask, int pl)
 
bool getAlpha (QString fn, int page, QByteArray &alpha, bool PDF, bool pdf14, int gsRes=72, int scaleXSize=0, int scaleYSize=0)
 
bool convert2JPG (QString fn, int Quality, bool isCMYK, bool isGray)
 
void applyEffect (const ScImageEffectList &effectsList, ColorList &colors, bool cmyk)
 
bool createLowRes (double scale)
 
void scaleImage (int width, int height)
 
void getEmbeddedProfile (const QString &fn, QByteArray *profile, int *components, int page=0)
 
bool loadPicture (const QString &fn, int page, const CMSettings &cmSettings, RequestType requestType, int gsRes, bool *realCMYK=0, bool showMsg=false)
 
bool loadPicture (ScImageCacheProxy &cache, bool &fromCache, int page, const CMSettings &cmSettings, RequestType requestType, int gsRes, bool *realCMYK=0, bool showMsg=false)
 
bool saveCache (ScImageCacheProxy &cache)
 

Public Attributes

ImageInfoRecord imgInfo
 

The documentation for this class was generated from the following files: