![]() |
ULIS
dev4.0.7
Utility Library for Imaging Systems
|
The FSanitizedGradient class provides a mean of storing gradients in various formats, with constraints the help in rasterizing them more efficiently than their non-Sanitized counterparts, which are meant for modification and editing. More...
Static Public Attributes | |
static constexpr uint8 | range = 100 |
Additional Inherited Members | |
![]() | |
IHasFormat (eFormat iFormat) | |
void | ReinterpretFormat (eFormat iFormat) |
![]() | |
IHasColorSpace (const FColorSpace *iColorSpace=nullptr) | |
FSanitizedGradient can have a single or no color. Steps are in [0;1]. Interpolation is linear in the preferred format.
FSanitizedGradient::~FSanitizedGradient | ( | ) |
Destroy the gradient.
Construct sanitized gradient from regular gradient
|
delete |
const TArray< FAlphaStep >& FSanitizedGradient::AlphaSteps | ( | ) | const |
Getter for gradient alpha steps.
const TArray< FColorStep >& FSanitizedGradient::ColorSteps | ( | ) | const |
Getter for gradient color steps.
Retrieve index of a alpha step in the array given an input parameter, using fast LUT retrieval.
Retrieve index of a color step in the array given an input parameter, using fast LUT retrieval.
const uint8* FSanitizedGradient::IndexLUTAlpha | ( | ) | const |
Getter for gradient index lut alpha.
const uint8* FSanitizedGradient::IndexLUTColor | ( | ) | const |
Getter for gradient index lut color.
|
delete |
void FSanitizedGradient::ReinterpretInterpolationFormat | ( | eFormat | iFormat | ) |
Change the preferred interpolation format.
|
staticconstexpr |