![]() | ![]() | ![]() | The libart library | ![]() |
---|
ArtAlphaGamma; ArtAlphaGamma* art_alphagamma_new (double gamma); void art_alphagamma_free (ArtAlphaGamma *alphagamma);
ArtAlphaGamma* art_alphagamma_new (double gamma);
Create a new ArtAlphaGamma for a specific value of gamma
. When
correctly implemented (which is generally not the case in libart),
alpha compositing with an alphagamma parameter is equivalent to
applying the gamma transformation to source images, doing the alpha
compositing (in linear intensity space), then applying the inverse
gamma transformation, bringing it back to a gamma-adjusted
intensity space.
gamma : | Gamma value. |
Returns : | The newly created ArtAlphaGamma. |
void art_alphagamma_free (ArtAlphaGamma *alphagamma);
Frees the ArtAlphaGamma.
alphagamma : | An ArtAlphaGamma. |
<<< Affine transformation matrices | Construction APIs >>> |