1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-05 03:50:07 +00:00

Added method Image::getClippedImage(), which allows the use of images that refer to subsections of another image. This means that the the parameters to a couple of Graphics methods no longer need a clipping rectangle. Also dded a static Image::null object and another constructor for Image::BitmapData.

This commit is contained in:
Julian Storer 2010-07-09 13:35:50 +01:00
parent fe92227a4d
commit 9f0c91196f
39 changed files with 198 additions and 160 deletions

View file

@ -622,7 +622,7 @@ public:
const uint32 bShiftL = jmax (0, getShiftNeeded (bMask));
const uint32 bShiftR = jmax (0, -getShiftNeeded (bMask));
const Image::BitmapData srcData (Image (this), 0, 0, width, height);
const Image::BitmapData srcData (Image (this), false);
for (int y = sy; y < sy + dh; ++y)
{
@ -1819,7 +1819,7 @@ private:
else if (Time::getApproximateMillisecondCounter() > lastTimeImageUsed + 3000)
{
stopTimer();
image = Image();
image = Image::null;
}
}
@ -3137,7 +3137,7 @@ void MouseCursor::showInAllWindows() const
//==============================================================================
const Image juce_createIconForFile (const File& file)
{
return Image();
return Image::null;
}
Image::SharedImage* Image::SharedImage::createNativeImage (PixelFormat format, int width, int height, bool clearImage)