Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
ImageEffects Struct Reference

Utility functions for applying effects to images. More...

#include <juce_Image.h>

Public Member Functions

 ImageEffects ()=delete
 

Static Public Member Functions

static void applyGaussianBlurEffect (float radius, const Image &input, Image &result)
 Applies a blur to this image, placing the blurred image in the result out-parameter.
 
static void applySingleChannelBoxBlurEffect (int radius, const Image &input, Image &result)
 Applies a blur to this image, placing the blurred image in the result out-parameter.
 

Detailed Description

Utility functions for applying effects to images.

These effects may or may not be hardware-accelerated.

Constructor & Destructor Documentation

◆ ImageEffects()

ImageEffects::ImageEffects ( )
delete

Member Function Documentation

◆ applyGaussianBlurEffect()

static void ImageEffects::applyGaussianBlurEffect ( float radius,
const Image & input,
Image & result )
static

Applies a blur to this image, placing the blurred image in the result out-parameter.

This will attempt to call the applyGaussianBlurEffect() member of the input image's underlying ImagePixelData, which will use hardware acceleration if available. If this fails, then a software blur will be applied instead.

This blur applies to all channels of the input image. It may be more expensive to calculate than a box blur, but should produce higher-quality results.

If result is already the correct size, then its storage will be reused directly. Otherwise, new storage may be allocated for the blurred image.

◆ applySingleChannelBoxBlurEffect()

static void ImageEffects::applySingleChannelBoxBlurEffect ( int radius,
const Image & input,
Image & result )
static

Applies a blur to this image, placing the blurred image in the result out-parameter.

This will attempt to call the applySingleChannelBoxBlurEffect() member of the input image's underlying ImagePixelData, which will use hardware acceleration if available. If this fails, then a software blur will be applied instead.

This kind of blur is only capable of blurring single-channel images, which is useful when rendering drop shadows. The blur is implemented as several box-blurs in series. The results should be visually similar to a Gaussian blur, but less accurate.

If result is already the correct size, then its storage will be reused directly. Otherwise, new storage may be allocated for the blurred image.


The documentation for this struct was generated from the following file:
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram