Référence de la classe KoAlphaColorSpace

#include <KoAlphaColorSpace.h>

Graphe d'héritage de KoAlphaColorSpace:

[légende]
Graphe de collaboration de KoAlphaColorSpace:
[légende]
Liste de tous les membres

Fonctions membres publiques

 KoAlphaColorSpace (KoColorSpaceRegistry *parent, KoColorProfile *p)
virtual ~KoAlphaColorSpace ()
virtual bool willDegrade (ColorSpaceIndependence independence) const
virtual void fromQColor (const QColor &c, quint8 *dst, KoColorProfile *profile=0) const
virtual void fromQColor (const QColor &c, quint8 opacity, quint8 *dst, KoColorProfile *profile=0) const
virtual void getAlpha (const quint8 *pixel, quint8 *alpha) const
virtual void toQColor (const quint8 *src, QColor *c, KoColorProfile *profile=0) const
virtual void toQColor (const quint8 *src, QColor *c, quint8 *opacity, KoColorProfile *profile=0) const
virtual quint8 difference (const quint8 *src1, const quint8 *src2) const
virtual void mixColors (const quint8 **colors, const quint8 *weights, quint32 nColors, quint8 *dst) const
virtual quint32 nColorChannels () const
virtual QString channelValueText (const quint8 *pixel, quint32 channelIndex) const
virtual QString normalisedChannelValueText (const quint8 *pixel, quint32 channelIndex) const
virtual void convolveColors (quint8 **colors, qint32 *kernelValues, KoChannelInfo::enumChannelFlags channelFlags, quint8 *dst, qint32 factor, qint32 offset, qint32 nColors) const

Fonctions membres protégées

virtual bool convertPixelsTo (const quint8 *src, quint8 *dst, KoColorSpace *dstColorSpace, quint32 numPixels, qint32 renderingIntent=INTENT_PERCEPTUAL) const

Description détaillée

The alpha mask is a special color strategy that treats all pixels as alpha value with a color common to the mask. The default color is white.

Définition à la ligne 38 du fichier KoAlphaColorSpace.h.


Documentation des contructeurs et destructeur

KoAlphaColorSpace::KoAlphaColorSpace ( KoColorSpaceRegistry parent,
KoColorProfile p 
)

Définition à la ligne 269 du fichier KoAlphaColorSpace.cpp.

Références KoChannelInfo::ALPHA, COMPOSITE_CLEAR, COMPOSITE_ERASE, COMPOSITE_OVER, COMPOSITE_SUBTRACT, KoLcmsColorSpace< AlphaU8Traits >::init(), KoColorSpace::m_channels, KoColorSpace::m_compositeOps, et KoChannelInfo::UINT8.

Voici le graphe d'appel pour cette fonction :

KoAlphaColorSpace::~KoAlphaColorSpace (  )  [virtual]

Définition à la ligne 281 du fichier KoAlphaColorSpace.cpp.


Documentation des fonctions membres

virtual bool KoAlphaColorSpace::willDegrade ( ColorSpaceIndependence  independence  )  const [inline, virtual]

If false, images in this colorspace will degrade considerably by functions, tools and filters that have the given measure of colorspace independence.

Paramètres:
independence the measure to which this colorspace will suffer from the manipulations of the tool or filter asking
Renvoie:
false if no degradation will take place, true if degradation will take place

Implémente KoColorSpace.

Définition à la ligne 45 du fichier KoAlphaColorSpace.h.

void KoAlphaColorSpace::fromQColor ( const QColor &  c,
quint8 *  dst,
KoColorProfile profile = 0 
) const [virtual]

The fromQColor methods take a given color defined as an RGB QColor and fills a byte array with the corresponding color in the the colorspace managed by this strategy.

Paramètres:
c the QColor that will be used to fill dst
dst a pointer to a pixel
profile the optional profile that describes the color values of QColor

Réimplémentée à partir de KoLcmsColorSpace< AlphaU8Traits >.

Définition à la ligne 285 du fichier KoAlphaColorSpace.cpp.

Références OPACITY_OPAQUE.

void KoAlphaColorSpace::fromQColor ( const QColor &  c,
quint8  opacity,
quint8 *  dst,
KoColorProfile profile = 0 
) const [virtual]

The fromQColor methods take a given color defined as an RGB QColor and fills a byte array with the corresponding color in the the colorspace managed by this strategy.

Paramètres:
c the QColor that will be used to fill dst
opacity the opacity of the color
dst a pointer to a pixel
profile the optional profile that describes the color values of QColor

Réimplémentée à partir de KoLcmsColorSpace< AlphaU8Traits >.

Définition à la ligne 290 du fichier KoAlphaColorSpace.cpp.

void KoAlphaColorSpace::getAlpha ( const quint8 *  pixel,
quint8 *  alpha 
) const [virtual]

Définition à la ligne 295 du fichier KoAlphaColorSpace.cpp.

void KoAlphaColorSpace::toQColor ( const quint8 *  src,
QColor *  c,
KoColorProfile profile = 0 
) const [virtual]

The toQColor methods take a byte array that is at least pixelSize() long and converts the contents to a QColor, using the given profile as a source profile and the optional profile as a destination profile.

Paramètres:
src a pointer to the source pixel
c the QColor that will be filled with the color at src
profile the optional profile that describes the color in c, for instance the monitor profile

Réimplémentée à partir de KoLcmsColorSpace< AlphaU8Traits >.

Définition à la ligne 300 du fichier KoAlphaColorSpace.cpp.

void KoAlphaColorSpace::toQColor ( const quint8 *  src,
QColor *  c,
quint8 *  opacity,
KoColorProfile profile = 0 
) const [virtual]

The toQColor methods take a byte array that is at least pixelSize() long and converts the contents to a QColor, using the given profile as a source profile and the option profile as a destination profile.

Paramètres:
src a pointer to the source pixel
c the QColor that will be filled with the color at src
opacity a pointer to a byte that will be filled with the opacity a src
profile the optional profile that describes the color in c, for instance the monitor profile

Réimplémentée à partir de KoLcmsColorSpace< AlphaU8Traits >.

Définition à la ligne 305 du fichier KoAlphaColorSpace.cpp.

quint8 KoAlphaColorSpace::difference ( const quint8 *  src1,
const quint8 *  src2 
) const [virtual]

Get the difference between 2 colors, normalized in the range (0,255)

Réimplémentée à partir de KoLcmsColorSpace< AlphaU8Traits >.

Définition à la ligne 311 du fichier KoAlphaColorSpace.cpp.

void KoAlphaColorSpace::mixColors ( const quint8 **  colors,
const quint8 *  weights,
quint32  nColors,
quint8 *  dst 
) const [virtual]

Mix the colors given their weights and return in dst The sum of weights is assumed 255

Réimplémentée à partir de KoColorSpaceAbstract< AlphaU8Traits >.

Définition à la ligne 317 du fichier KoAlphaColorSpace.cpp.

virtual quint32 KoAlphaColorSpace::nColorChannels (  )  const [inline, virtual]

The total number of color channels (excludes alpha and substance) for a single pixel in this color model.

Réimplémentée à partir de KoColorSpaceAbstract< AlphaU8Traits >.

Définition à la ligne 62 du fichier KoAlphaColorSpace.h.

QString KoAlphaColorSpace::channelValueText ( const quint8 *  pixel,
quint32  channelIndex 
) const [virtual]

Return a string with the channel's value suitable for display in the gui.

Réimplémentée à partir de KoColorSpaceAbstract< AlphaU8Traits >.

Définition à la ligne 356 du fichier KoAlphaColorSpace.cpp.

Références KoColorSpace::m_channels, et KoColorSpaceAbstract< AlphaU8Traits >::nChannels().

Voici le graphe d'appel pour cette fonction :

QString KoAlphaColorSpace::normalisedChannelValueText ( const quint8 *  pixel,
quint32  channelIndex 
) const [virtual]

Return a string with the channel's value with integer channels normalised to the floating point range 0 to 1, if appropriate.

Réimplémentée à partir de KoColorSpaceAbstract< AlphaU8Traits >.

Définition à la ligne 364 du fichier KoAlphaColorSpace.cpp.

Références KoColorSpace::m_channels, KoColorSpaceAbstract< AlphaU8Traits >::nChannels(), et UINT8_MAX.

Voici le graphe d'appel pour cette fonction :

void KoAlphaColorSpace::convolveColors ( quint8 **  colors,
qint32 *  kernelValues,
KoChannelInfo::enumChannelFlags  channelFlags,
quint8 *  dst,
qint32  factor,
qint32  offset,
qint32  nColors 
) const [virtual]

Convolve the given array of pointers to pixels and return the result in dst. The kernel values are clamped between -128 and 128

Réimplémentée à partir de KoColorSpaceAbstract< AlphaU8Traits >.

Définition à la ligne 373 du fichier KoAlphaColorSpace.cpp.

Références CLAMP, et KoChannelInfo::FLAG_ALPHA.

bool KoAlphaColorSpace::convertPixelsTo ( const quint8 *  src,
quint8 *  dst,
KoColorSpace dstColorSpace,
quint32  numPixels,
qint32  renderingIntent = INTENT_PERCEPTUAL 
) const [protected, virtual]

Convert a byte array of srcLen pixels *src to the specified color space and put the converted bytes into the prepared byte array *dst.

Returns false if the conversion failed, true if it succeeded

Définition à la ligne 331 du fichier KoAlphaColorSpace.cpp.

Références KoColorSpace::fromQColor(), OPACITY_OPAQUE, KoColorSpace::pixelSize(), et testguiform::size.

Voici le graphe d'appel pour cette fonction :


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:43:40 2006 pour KPlato par  doxygen 1.5.1-p1