GlowEffect Class Reference

A component effect that adds a coloured blur around the component's contents. More...

Inherits ImageEffectFilter.

List of all members.

Public Member Functions

 GlowEffect ()
 Creates a default 'glow' effect.
 ~GlowEffect ()
 Destructor.
void setGlowProperties (const float newRadius, const Colour &newColour)
 Sets the glow's radius and colour.
void applyEffect (Image &sourceImage, Graphics &destContext)

Detailed Description

A component effect that adds a coloured blur around the component's contents.

(This will only work on non-opaque components).

See also:
Component::setComponentEffect, DropShadowEffect

Constructor & Destructor Documentation

GlowEffect::GlowEffect (  ) 

Creates a default 'glow' effect.

To customise its appearance, use the setGlowProperties() method.

GlowEffect::~GlowEffect (  ) 

Destructor.


Member Function Documentation

void GlowEffect::setGlowProperties ( const float  newRadius,
const Colour newColour 
)

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

void GlowEffect::applyEffect ( Image sourceImage,
Graphics destContext 
) [virtual]

For internal use only.

Implements ImageEffectFilter.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Apr 26 11:42:12 2010 for JUCE by  doxygen 1.6.3