1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-14 00:14:18 +00:00

Removed methods Graphics::getCurrentFont and Graphics::getCurrentColour, because these methods will become impossible for future native drawing contexts. This required a couple of minor tweaks to LookAndFeel and Drawable methods. Also fixed native CoreGraphics drawing of transparent windows.

This commit is contained in:
Julian Storer 2009-10-31 15:26:22 +00:00
parent 3c32eda726
commit 1e1c9944c9
18 changed files with 114 additions and 343 deletions

View file

@ -449,39 +449,6 @@ void LowLevelGraphicsPostScriptRenderer::fillAlphaChannelWithImage (const Image&
notPossibleInPostscriptAssert // you can disable this warning by setting the WARN_ABOUT_NON_POSTSCRIPT_OPERATIONS flag at the top of this file
}
//==============================================================================
void LowLevelGraphicsPostScriptRenderer::blendImageRescaling (const Image& sourceImage,
int dx, int dy, int dw, int dh,
int sx, int sy, int sw, int sh,
float alpha,
const Graphics::ResamplingQuality quality)
{
if (sw > 0 && sh > 0)
{
jassert (sx >= 0 && sx + sw <= sourceImage.getWidth());
jassert (sy >= 0 && sy + sh <= sourceImage.getHeight());
if (sw == dw && sh == dh)
{
blendImage (sourceImage,
dx, dy, dw, dh,
sx, sy, alpha);
}
else
{
blendImageWarping (sourceImage,
sx, sy, sw, sh,
AffineTransform::scale (dw / (float) sw,
dh / (float) sh)
.translated ((float) (dx - sx),
(float) (dy - sy)),
alpha,
quality);
}
}
}
//==============================================================================
void LowLevelGraphicsPostScriptRenderer::blendImage (const Image& sourceImage, int dx, int dy, int dw, int dh, int sx, int sy, float opacity)
{