mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-24 01:54:22 +00:00
Changed lowResamplingQuality to kCGInterpolationNone on OS X and iOS
This commit is contained in:
parent
6c39897369
commit
13c494666e
2 changed files with 3 additions and 4 deletions
|
|
@ -469,7 +469,6 @@ public:
|
|||
lowResamplingQuality = 0, /**< Just uses a nearest-neighbour algorithm for resampling. */
|
||||
mediumResamplingQuality = 1, /**< Uses bilinear interpolation for upsampling and area-averaging for downsampling. */
|
||||
highResamplingQuality = 2, /**< Uses bicubic interpolation for upsampling and area-averaging for downsampling. */
|
||||
noResampling = 3 /**< No resampling is performed. */
|
||||
};
|
||||
|
||||
/** Changes the quality that will be used when resampling images.
|
||||
|
|
|
|||
|
|
@ -387,9 +387,9 @@ void CoreGraphicsContext::setInterpolationQuality (Graphics::ResamplingQuality q
|
|||
{
|
||||
switch (quality)
|
||||
{
|
||||
case Graphics::lowResamplingQuality: CGContextSetInterpolationQuality (context, kCGInterpolationLow); return;
|
||||
case Graphics::highResamplingQuality: CGContextSetInterpolationQuality (context, kCGInterpolationHigh); return;
|
||||
case Graphics::noResampling: CGContextSetInterpolationQuality (context, kCGInterpolationNone); return;
|
||||
case Graphics::lowResamplingQuality: CGContextSetInterpolationQuality (context, kCGInterpolationNone); return;
|
||||
case Graphics::mediumResamplingQuality: CGContextSetInterpolationQuality (context, kCGInterpolationMedium); return;
|
||||
case Graphics::highResamplingQuality: CGContextSetInterpolationQuality (context, kCGInterpolationHigh); return;
|
||||
default: return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue