Gin
|
Enumerations | |
enum class | ResizeAlgorirm { avir , lanczos } |
A very high quality image resize using a bank of sinc function-based fractional delay filters. More... | |
enum | BlendMode { Normal , Lighten , Darken , Multiply , Average , Add , Subtract , Difference , Negation , Screen , Exclusion , Overlay , SoftLight , HardLight , ColorDodge , ColorBurn , LinearDodge , LinearBurn , LinearLight , VividLight , PinLight , HardMix , Reflect , Glow , Phoenix } |
Blending modes for applyBlend. More... | |
Functions | |
void | applyVignette (juce::Image &img, float amount, float radius, float falloff, juce::ThreadPool *threadPool=nullptr) |
Apply vignette. More... | |
void | applySepia (juce::Image &img, juce::ThreadPool *threadPool=nullptr) |
Make it look old. More... | |
void | applyGreyScale (juce::Image &img, juce::ThreadPool *threadPool=nullptr) |
Converts image to B/W, heavier weighting towards greens. More... | |
void | applySoften (juce::Image &img, juce::ThreadPool *threadPool=nullptr) |
Softens an image. More... | |
void | applySharpen (juce::Image &img, juce::ThreadPool *threadPool=nullptr) |
Sharpens an image. More... | |
void | applyGamma (juce::Image &img, float gamma, juce::ThreadPool *threadPool=nullptr) |
void | applyInvert (juce::Image &img, juce::ThreadPool *threadPool=nullptr) |
Inverts colours of an image. More... | |
void | applyContrast (juce::Image &img, float contrast, juce::ThreadPool *threadPool=nullptr) |
Adjust contrast of an image. More... | |
void | applyBrightnessContrast (juce::Image &img, float brightness, float contrast, juce::ThreadPool *threadPool=nullptr) |
Adjust brightness and contrast of an image. More... | |
void | applyHueSaturationLightness (juce::Image &img, float hue, float saturation, float lightness, juce::ThreadPool *threadPool=nullptr) |
Adjust hue, saturation and lightness of an image. More... | |
void | applyStackBlur (juce::Image &img, int radius) |
A very fast blur. More... | |
juce::Image | applyResize (const juce::Image &img, int width, int height, ResizeAlgorirm resizeAlgorirm=ResizeAlgorirm::avir) |
juce::Image | applyResize (const juce::Image &img, float factor, ResizeAlgorirm resizeAlgorirm=ResizeAlgorirm::avir) |
void | applyGradientMap (juce::Image &img, const juce::ColourGradient &gradient, juce::ThreadPool *threadPool=nullptr) |
GradientMap a image. More... | |
void | applyGradientMap (juce::Image &img, const juce::Colour c1, const juce::Colour c2, juce::ThreadPool *threadPool=nullptr) |
void | applyColour (juce::Image &img, juce::Colour c, juce::ThreadPool *threadPool=nullptr) |
Set an image to a solid colour. More... | |
void | applyBlend (juce::Image &dst, const juce::Image &src, BlendMode mode, float alpha=1.0f, juce::Point< int > position={}, juce::ThreadPool *threadPool=nullptr) |
Blend two images. More... | |
void | applyBlend (juce::Image &dst, BlendMode mode, juce::Colour c, juce::ThreadPool *threadPool=nullptr) |
Blend two images. More... | |
|
strong |
enum BlendMode |
void applyVignette | ( | juce::Image & | img, |
float | amount, | ||
float | radius, | ||
float | falloff, | ||
juce::ThreadPool * | threadPool = nullptr |
||
) |
Apply vignette.
amount | Amount to darken outside of vignette. 0 no darkening. 1 is black. |
radius | Size of vignette. 1 size of image. 0 is 0 size. |
falloff | Relative size of inner boundry of vignette 0,1 |
void applySepia | ( | juce::Image & | img, |
juce::ThreadPool * | threadPool = nullptr |
||
) |
Make it look old.
void applyGreyScale | ( | juce::Image & | img, |
juce::ThreadPool * | threadPool = nullptr |
||
) |
Converts image to B/W, heavier weighting towards greens.
void applySoften | ( | juce::Image & | img, |
juce::ThreadPool * | threadPool = nullptr |
||
) |
Softens an image.
void applySharpen | ( | juce::Image & | img, |
juce::ThreadPool * | threadPool = nullptr |
||
) |
Sharpens an image.
void applyGamma | ( | juce::Image & | img, |
float | gamma, | ||
juce::ThreadPool * | threadPool = nullptr |
||
) |
void applyInvert | ( | juce::Image & | img, |
juce::ThreadPool * | threadPool = nullptr |
||
) |
Inverts colours of an image.
void applyContrast | ( | juce::Image & | img, |
float | contrast, | ||
juce::ThreadPool * | threadPool = nullptr |
||
) |
Adjust contrast of an image.
contrast | Amount to adjust contrast. Negative values increase, positive values increase |
void applyBrightnessContrast | ( | juce::Image & | img, |
float | brightness, | ||
float | contrast, | ||
juce::ThreadPool * | threadPool = nullptr |
||
) |
Adjust brightness and contrast of an image.
brightness | Amount to adjust brightness -100,100 |
contrast | Amount to adjust contrast -100,100 |
void applyHueSaturationLightness | ( | juce::Image & | img, |
float | hue, | ||
float | saturation, | ||
float | lightness, | ||
juce::ThreadPool * | threadPool = nullptr |
||
) |
Adjust hue, saturation and lightness of an image.
hue | Amount to adjust hue -180,180 |
saturation | Amount to adjust saturation 0,200 |
lightness | Amount to adjust lightness -100,100 |
void applyStackBlur | ( | juce::Image & | img, |
int | radius | ||
) |
A very fast blur.
This is a compromise between Gaussian Blur and Box blur. It creates much better looking blurs than Box Blur, but is 7x faster than some Gaussian Blur implementations.
radius | from 2 to 254 |
juce::Image applyResize | ( | const juce::Image & | img, |
int | width, | ||
int | height, | ||
ResizeAlgorirm | resizeAlgorirm = ResizeAlgorirm::avir |
||
) |
juce::Image applyResize | ( | const juce::Image & | img, |
float | factor, | ||
ResizeAlgorirm | resizeAlgorirm = ResizeAlgorirm::avir |
||
) |
void applyGradientMap | ( | juce::Image & | img, |
const juce::ColourGradient & | gradient, | ||
juce::ThreadPool * | threadPool = nullptr |
||
) |
GradientMap a image.
Brightness gets remapped to colour on a gradient.
void applyGradientMap | ( | juce::Image & | img, |
const juce::Colour | c1, | ||
const juce::Colour | c2, | ||
juce::ThreadPool * | threadPool = nullptr |
||
) |
void applyColour | ( | juce::Image & | img, |
juce::Colour | c, | ||
juce::ThreadPool * | threadPool = nullptr |
||
) |
Set an image to a solid colour.
void applyBlend | ( | juce::Image & | dst, |
const juce::Image & | src, | ||
BlendMode | mode, | ||
float | alpha = 1.0f , |
||
juce::Point< int > | position = {} , |
||
juce::ThreadPool * | threadPool = nullptr |
||
) |
Blend two images.
void applyBlend | ( | juce::Image & | dst, |
BlendMode | mode, | ||
juce::Colour | c, | ||
juce::ThreadPool * | threadPool = nullptr |
||
) |
Blend two images.