◆ ScopedBlendContextOptions() [1/2]
| juce::ScopedBlendContextOptions::ScopedBlendContextOptions |
( |
| ) |
|
|
default |
◆ ScopedBlendContextOptions() [2/2]
| juce::ScopedBlendContextOptions::ScopedBlendContextOptions |
( |
BlendMode |
mode | ) |
|
|
inlineexplicit |
Creates an object using the provided blend mode.
◆ withBlendMode()
Specifies the blend mode to be applied when blending the backing buffer into the parent buffer.
- See also
- BlendMode
References juce::withMember(), and x.
◆ withLuminanceMaskSet()
When this option is set, the backing buffer's luminosity is converted to alpha values prior to blending it into the parent buffer.
After conversion, the RGB components are zero, and the A component is calculated using the equation in the SVG specification A = ((0.2125 * R) + (0.7154 * G) + (0.0721 * B)) * A.
References juce::withMember(), and x.
◆ withScopeClip()
Allows specifying an additional clip for the blend context, reducing the necessary size of the backing buffer.
By default the backing buffer will be the same size as the parent context's clip region. Even if this value is provided, it is ignored for certain blending modes such as destinationIn and destinationOut.
References juce::withMember(), and x.
◆ withOpacity()
Allows specifying an additional opacity value that is applied prior to blending the buffer into the parent.
References juce::withMember(), and x.
◆ getBlendMode()
| const auto & juce::ScopedBlendContextOptions::getBlendMode |
( |
| ) |
const |
|
inline |
◆ isLuminanceMask()
| const auto & juce::ScopedBlendContextOptions::isLuminanceMask |
( |
| ) |
const |
|
inline |
◆ getScopeClip()
| const auto & juce::ScopedBlendContextOptions::getScopeClip |
( |
| ) |
const |
|
inline |
◆ getOpacity()
| const auto & juce::ScopedBlendContextOptions::getOpacity |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: