mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
CoreGraphics: Remove CoreImage implementations for desaturation and transparency
This commit is contained in:
parent
c46bcb677e
commit
09b10428ec
1 changed files with 0 additions and 20 deletions
|
|
@ -113,26 +113,6 @@ public:
|
|||
applyFilterInArea (area, buildFilter);
|
||||
}
|
||||
|
||||
void multiplyAllAlphasInArea (Rectangle<int> area, float amount) override
|
||||
{
|
||||
const auto buildFilter = [amount]
|
||||
{
|
||||
return [CIFilter filterWithName: @"CIColorMatrix"
|
||||
withInputParameters: @{ @"inputAVector": [CIVector vectorWithX: 0 Y: 0 Z: 0 W: amount] }];
|
||||
};
|
||||
applyFilterInArea (area, buildFilter);
|
||||
}
|
||||
|
||||
void desaturateInArea (Rectangle<int> area) override
|
||||
{
|
||||
const auto buildFilter = []
|
||||
{
|
||||
return [CIFilter filterWithName: @"CIColorControls"
|
||||
withInputParameters: @{ kCIInputSaturationKey: [NSNumber numberWithFloat: 0] }];
|
||||
};
|
||||
applyFilterInArea (area, buildFilter);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
static CFUniquePtr<CGImageRef> getCachedImageRef (const Image& juceImage, CGColorSpaceRef colourSpace)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue