1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Refactoring of image storage: new classes ImageType, ImagePixelData, SoftwareImageType, NativeImageType, OpenGLImageType.

This commit is contained in:
jules 2011-10-28 14:21:29 +01:00
parent c555cbb9cb
commit 0b1cdf6ab1
21 changed files with 501 additions and 446 deletions

View file

@ -196,7 +196,7 @@ void DropShadower::updateShadows()
if (bigIm.isNull())
{
bigIm = Image (Image::ARGB, shadowEdge * 5, shadowEdge * 5, true, Image::NativeImage);
bigIm = Image (Image::ARGB, shadowEdge * 5, shadowEdge * 5, true);
Graphics bigG (bigIm);
bigG.setColour (Colours::black.withAlpha (alpha));
@ -280,7 +280,7 @@ void DropShadower::updateShadows()
void DropShadower::setShadowImage (const Image& src, const int num, const int w, const int h,
const int sx, const int sy)
{
shadowImageSections[num] = Image (Image::ARGB, w, h, true, Image::NativeImage);
shadowImageSections[num] = Image (Image::ARGB, w, h, true);
Graphics g (shadowImageSections[num]);
g.drawImage (src, 0, 0, w, h, sx, sy, w, h);