krita
KisGenericRGBHistogramProducer Class Reference
#include <kis_basic_histogram_producers.h>
Inherits KisBasicHistogramProducer.
Detailed Description
This is a Producer (with associated factory) that converts the pixels of the colorspace to RGB8 with toQColor, and then does its counting on RGB.This is NOT registered with the Registry, because it isCompatibleWith all colorspaces, and should only be used in extreme cases (like no other producer being available
Definition at line 143 of file kis_basic_histogram_producers.h.
Public Member Functions | |
virtual void | addRegionToBin (Q_UINT8 *pixels, Q_UINT8 *selectionMask, Q_UINT32 nPixels, KisColorSpace *colorSpace) |
virtual QString | positionToString (double pos) const |
virtual double | maximalZoom () const |
virtual QValueVector < KisChannelInfo * > | channels () |
Protected Attributes | |
QValueVector< KisChannelInfo * > | m_channelsList |
Member Function Documentation
void KisGenericRGBHistogramProducer::addRegionToBin | ( | Q_UINT8 * | pixels, | |
Q_UINT8 * | selectionMask, | |||
Q_UINT32 | nPixels, | |||
KisColorSpace * | colorSpace | |||
) | [virtual] |
Adds the values from the specified array of pixels to the bins -- does not reset anything.
- Parameters:
-
pixels A pointer an array of pixeldata in the given colorspace selectionMask a pointer to an array of bytes, where 0 is unselected and 1-255 is degree of selectedness. The array must be just as long as the array of pixels. nPixels The number of pixels colorSpace the colorspace that can decode the pixel data.
Implements KisHistogramProducer.
Definition at line 367 of file kis_basic_histogram_producers.cc.
The documentation for this class was generated from the following files: