Gin
Enumerations | Functions
gin_imageeffects.h File Reference

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...