33 double myPixelValue = theValue;
49 *theReturnRedValue = 0;
51 *theReturnBlueValue = 255;
57 *theReturnGreenValue = 255;
63 *theReturnRedValue = 255;
65 *theReturnBlueValue = 0;
71 bool QgsPseudoColorShader::shade(
double theRedValue,
double theGreenValue,
double theBlueValue,
int* theReturnRedValue,
int* theReturnGreenValue,
int* theReturnBlueValue )
73 Q_UNUSED( theRedValue );
74 Q_UNUSED( theGreenValue );
75 Q_UNUSED( theBlueValue );
77 *theReturnRedValue = 0;
78 *theReturnGreenValue = 0;
79 *theReturnBlueValue = 0;
void setMaximumValue(double)
Set the maximum value.
QgsPseudoColorShader(double theMinimumValue=0.0, double theMaximumValue=255.0)
double mMinimumValue
User defineable minimum value for the shading function.
void setMinimumValue(double)
Return the minimum value.
double mMaximumValue
User defineable maximum value for the shading function.
The raster shade function applies a shader to a pixel at render time - typically used to render grays...
bool shade(double, int *, int *, int *)
generates and new RGB value based on one input value
double mMinimumMaximumRange
Minimum maximum range for the shading function.