mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
This issue could be seen when calling setBufferedToImage on a component with a transparent background with a size different to the component's size. The details are unclear to me, but it seems like both calling Clear on the device context, and using the COPY blend mode, ignore alpha values and instead use a constant alpha of 1.0 when there is a geometric clipping layer active. As a workaround for this issue, when clearing a rectangle we now pop all active layers, fill their intersection using the COPY blend mode while there are no layers active, and then reinstate the layers. The new implementation is likely to be very slow, however I think this code path is unlikely to be used frequently in practice. The main use-case for rendering clear transparent areas is the rendering of buffered component images, but such cases normally use axis-aligned clipping regions, which should be able to use the faster path. |
||
|---|---|---|
| .. | ||
| colour | ||
| contexts | ||
| detail | ||
| effects | ||
| fonts | ||
| geometry | ||
| image_formats | ||
| images | ||
| native | ||
| placement | ||
| unicode | ||
| juce_graphics.cpp | ||
| juce_graphics.h | ||
| juce_graphics.mm | ||
| juce_graphics_Harfbuzz.cpp | ||