#include <imageprocessor/imageprocessoreffect.h>
Link against: imageprocessor.lib
class ImageProcessor::TEffectColorization : public ImageProcessor::TEffect |
Public Member Functions | |
---|---|
IMPORT_C TInt | ChrominanceStrengthL() |
IMPORT_C TInt | LuminanceStrengthL() |
IMPORT_C TRgb | ReferenceColorL() |
IMPORT_C void | SetColorizationL(TRgb, TInt, TInt) |
Inherited Enumerations | |
---|---|
ImageProcessor::TEffect:TEffectInputType |
The class provides functions to adjust color tone and luminance/chrominance levels.
IMPORT_C TInt | ChrominanceStrengthL | ( | ) | const |
Gets the current chrominance level of colorization effect
IMPORT_C TInt | LuminanceStrengthL | ( | ) | const |
Gets the current luminance level of colorization effect
IMPORT_C TRgb | ReferenceColorL | ( | ) | const |
Gets the current rgb value of the reference color
IMPORT_C void | SetColorizationL | ( | TRgb | aReferenceColor, |
TInt | aLuminanceStrength, | |||
TInt | aChrominanceStrength | |||
) |
Specifies the rgb value of reference color and specifies luminance, chrominance level for the colorization effect.
Parameters | |
---|---|
aReferenceColor | The rgb value of the reference color. |
aLuminanceStrength | The strength of luminance. Range (-100) - (200), where 0.0 implies no adjustment. |
aChrominanceStrength | The strength of chrominance. Range (-100) - (200), where 0.0 implies no adjustment. |
Leave Codes | |
---|---|
KErrNotReady | The effect is not active. |
KErrArgument | The luminance or chrominance strength is not in the acceptable range. |