41 Image temp (image.getFormat(), image.getWidth(), image.getHeight(),
true);
48 blurKernel.applyToImage (temp, image, image.getBounds());
Represents a colour, also including a transparency value.
Colour withMultipliedAlpha(float alphaMultiplier) const noexcept
Returns a colour that's the same colour as this one, but with a modified alpha value.
void setGlowProperties(float newRadius, Colour newColour, Point< int > offset={})
Sets the glow's radius and colour.
GlowEffect()
Creates a default 'glow' effect.
~GlowEffect() override
Destructor.
void applyEffect(Image &, Graphics &, float scaleFactor, float alpha) override
Overridden to render the effect.
A graphics context, used for drawing a component or image.
void setOpacity(float newOpacity)
Changes the opacity to use with the current colour.
void drawImageAt(const Image &imageToDraw, int topLeftX, int topLeftY, bool fillAlphaChannelWithCurrentBrush=false) const
Draws an image.
void setColour(Colour newColour)
Changes the current drawing colour.
Represents a filter kernel to use in convoluting an image.
Holds a fixed-size bitmap.
A pair of (x, y) coordinates.
ValueType y
The point's Y coordinate.
ValueType x
The point's X coordinate.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
int roundToInt(const FloatType value) noexcept
Fast floating-point-to-integer conversion.