|
|
|
@@ -385,9 +385,13 @@ void CoreGraphicsContext::setOpacity (float newOpacity) |
|
|
|
|
|
|
|
void CoreGraphicsContext::setInterpolationQuality (Graphics::ResamplingQuality quality)
|
|
|
|
{
|
|
|
|
CGContextSetInterpolationQuality (context, quality == Graphics::lowResamplingQuality
|
|
|
|
? kCGInterpolationLow
|
|
|
|
: kCGInterpolationHigh);
|
|
|
|
switch (quality)
|
|
|
|
{
|
|
|
|
case Graphics::lowResamplingQuality: CGContextSetInterpolationQuality (context, kCGInterpolationLow); return;
|
|
|
|
case Graphics::highResamplingQuality: CGContextSetInterpolationQuality (context, kCGInterpolationHigh); return;
|
|
|
|
case Graphics::noResampling: CGContextSetInterpolationQuality (context, kCGInterpolationNone); return;
|
|
|
|
default: return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
|