20#ifndef __koPictureEps_h__
21#define __koPictureEps_h__
27class KoPictureEpsPrivate;
35class KoPictureEps : public KoPictureBase
46 virtual ~KoPictureEps();
48 KoPictureType::Type getType( void) const;
50 KoPictureBase* newCopy( void) const;
55 virtual bool isNull( void) const;
75 virtual void draw(TQPainter& painter, int x, int y, int width, int height, int sx = 0, int sy = 0, int sw = -1, int sh = -1, bool fastMode = false);
77 virtual bool loadData( const TQByteArray& array, const TQString& extension);
79 virtual bool save(TQIODevice* io) const;
81 virtual TQSize getOriginalSize( void) const;
83 virtual TQPixmap generatePixmap( const TQSize& size, bool smoothScale = false);
85 virtual TQString getMimeType( const TQString& extension) const;
91 virtual TQImage generateImage( const TQSize& size);
93 virtual void clearCache( void);
95 TQPixmap getPixmap(TQImage& image);
96 void scaleAndCreatePixmap( const TQSize& size, bool fastMode, const int resolutionx, const int resolutiony );
97 TQImage scaleWithGhostScript( const TQSize& size, const int resolutionx, const int resolutiony );
98 bool extractPostScriptStream( void );
101 int tryScaleWithGhostScript(TQImage &image, const TQSize& size, const int resolutionx, const int resolutiony, const char* device );
116 TQString readLine( const TQByteArray& array, const uint start, const uint length, uint& pos, bool& lastCharWasCr );
122 TQByteArray m_rawData;
123 TQPixmap m_cachedPixmap;
124 TQSize m_originalSize;
126 TQRect m_boundingBox;
127 uint m_psStreamStart;
128 uint m_psStreamLength;
133 bool m_cacheIsInFastMode;
|