21#ifndef __kis_pattern_h__
22#define __kis_pattern_h__
26#include "kis_debug_areas.h"
27#include "kis_resource.h"
41 KisPattern( const TQString& file);
42 KisPattern(KisPaintDevice* image, int x, int y, int w, int h);
43 virtual ~KisPattern();
47 virtual TQImage img();
53 KisPaintDeviceSP image(KisColorSpace * colorSpace);
55 TQ_INT32 width() const;
56 TQ_INT32 height() const;
58 void setImage( const TQImage& img);
60 KisPattern* clone() const;
63 void setWidth(TQ_INT32 w);
64 void setHeight(TQ_INT32 h);
72 TQMap<TQString, KisPaintDeviceSP> m_colorspaces;
A colorspace is the definition of a certain color model in Chalk.
A paint device contains the actual pixel data and offers methods to read and write pixels.
The KisResource class provides a representation of Chalk image resources.
virtual TQImage img()=0 Returns a TQImage representing this resource.
KisResource(const TQString &filename) Creates a new KisResource object using filename.
virtual bool save()=0 Save this resource asynchronously.
virtual bool load()=0 Load this resource.
|