kis_color.cpp
131// To save the user the trouble of doing color->colorSpace()->toTQColor(color->data(), &c, &a, profile
145 // XXX (bsar): There must be a better way, but I'm getting hopelessly confused about constness by now
173 //kdDebug(DBG_AREA_CMS) << "Channel (byte): " << ch->name() << ": " << TQString().setNum(m_data[ch->pos()]) << "\n";
177 //kdDebug(DBG_AREA_CMS) << "Channel (short): " << ch->name() << ": " << TQString().setNum(*((const TQ_UINT16 *)(m_data+ch->pos()))) << "\n";
181 //kdDebug(DBG_AREA_CMS) << "Channel (int): " << ch->name() << ": " << TQString().setNum(*((const TQ_UINT32 *)(m_data+ch->pos()))) << "\n";
This class gives some basic information about a channel, that is, one of the components that makes up...
Definition kis_channelinfo.h:30
A colorspace is the definition of a certain color model in Chalk.
Definition kis_colorspace.h:58
virtual void toTQColor(const TQ_UINT8 *src, TQColor *c, KisProfile *profile=0)=0
The toTQColor methods take a byte array that is at least pixelSize() long and converts the contents t...
virtual void fromTQColor(const TQColor &c, TQ_UINT8 *dst, KisProfile *profile=0)=0
The fromTQColor methods take a given color defined as an RGB TQColor and fills a byte array with the ...
virtual bool convertPixelsTo(const TQ_UINT8 *src, TQ_UINT8 *dst, KisColorSpace *dstColorSpace, TQ_UINT32 numPixels, TQ_INT32 renderingIntent=INTENT_PERCEPTUAL)=0
Convert a byte array of srcLen pixels *src to the specified color space and put the converted bytes i...
virtual TQValueVector< KisChannelInfo * > channels() const =0
Return a vector describing all the channels this color model has.
virtual TQ_UINT32 pixelSize() const =0
The size in bytes of a single pixel in this color model.
void toTQColor(TQColor *c) const
To save the user the trouble of doing color->colorSpace()->toTQColor(color->data(),...
Definition kis_color.cpp:132
KisColor()
Create an empty KisColor. It will be valid, but also black and transparent.
Definition kis_color.cpp:27
void convertTo(KisColorSpace *cs)
Convert this KisColor to the specified colorspace.
Definition kis_color.cpp:104
void setColor(TQ_UINT8 *data, KisColorSpace *colorSpace=0)
Replace the existing color data, and colorspace with the specified data.
Definition kis_color.cpp:123
