Changeset View
Changeset View
Standalone View
Standalone View
libs/pigment/KoMixColorsOp.h
Show All 28 Lines | |||||
29 | */ | 29 | */ | ||
30 | class KoMixColorsOp | 30 | class KoMixColorsOp | ||
31 | { | 31 | { | ||
32 | public: | 32 | public: | ||
33 | virtual ~KoMixColorsOp() { } | 33 | virtual ~KoMixColorsOp() { } | ||
34 | /** | 34 | /** | ||
35 | * Mix the colors. | 35 | * Mix the colors. | ||
36 | * @param colors a pointer toward the source pixels | 36 | * @param colors a pointer toward the source pixels | ||
37 | * @param weights the coeffient of the source pixels (if you want | 37 | * @param weights the coefficient of the source pixels (if you want | ||
38 | * to average the sum of weights must be equal to 255) | 38 | * to average the sum of weights must be equal to 255) | ||
39 | * @param nColors the number of pixels in the colors array | 39 | * @param nColors the number of pixels in the colors array | ||
40 | * @param dst the destination pixel | 40 | * @param dst the destination pixel | ||
41 | * | 41 | * | ||
42 | * @code | 42 | * @code | ||
43 | * quint8* colors[nColors]; | 43 | * quint8* colors[nColors]; | ||
44 | * colors[0] = ptrToFirstPixel; | 44 | * colors[0] = ptrToFirstPixel; | ||
45 | * colors[1] = ptrToSecondPixel; | 45 | * colors[1] = ptrToSecondPixel; | ||
Show All 36 Lines |