A component effect that adds a coloured blur around the component's contents. More...
#include <juce_GlowEffect.h>
Public Member Functions | |
GlowEffect () | |
Creates a default 'glow' effect. More... | |
~GlowEffect () | |
Destructor. More... | |
void | applyEffect (Image &, Graphics &, float scaleFactor, float alpha) override |
void | setGlowProperties (float newRadius, Colour newColour, Point< int > offset={}) |
Sets the glow's radius and colour. More... | |
Private Attributes | |
Colour | colour { Colours::white } |
Point< int > | offset |
float | radius = 2.0f |
A component effect that adds a coloured blur around the component's contents.
(This will only work on non-opaque components).
GlowEffect::GlowEffect | ( | ) |
Creates a default 'glow' effect.
To customise its appearance, use the setGlowProperties() method.
GlowEffect::~GlowEffect | ( | ) |
Destructor.
|
overridevirtual |
Implements ImageEffectFilter.
Sets the glow's radius and colour.
The radius is how large the blur should be, and the colour is used to render it (for a less intense glow, lower the colour's opacity).
|
private |
|
private |