openshot-audio
0.1.7
|
#include <juce_DropShadowEffect.h>
Public Member Functions | |
DropShadow () noexcept | |
DropShadow (Colour shadowColour, int radius, Point< int > offset) noexcept | |
void | drawForImage (Graphics &g, const Image &srcImage) const |
void | drawForPath (Graphics &g, const Path &path) const |
void | drawForRectangle (Graphics &g, const Rectangle< int > &area) const |
Public Attributes | |
Colour | colour |
int | radius |
Point< int > | offset |
Defines a drop-shadow effect.
|
noexcept |
Creates a default drop-shadow effect.
Creates a drop-shadow object with the given parameters.
Renders a drop-shadow based on the alpha-channel of the given image.
Renders a drop-shadow based on the shape of a path.
Renders a drop-shadow for a rectangle. Note that for speed, this approximates the shadow using gradients.
Colour DropShadow::colour |
The colour with which to render the shadow. In most cases you'll probably want to leave this as black with an alpha value of around 0.5
Point<int> DropShadow::offset |
The offset of the shadow.
int DropShadow::radius |
The approximate spread of the shadow.