summaryrefslogtreecommitdiff
path: root/javax/imageio
diff options
context:
space:
mode:
authorMario Torre <neugens@limasoftware.net>2008-06-15 18:14:54 +0000
committerMario Torre <neugens@limasoftware.net>2008-06-15 18:14:54 +0000
commit7e19ed027af34eb66eb263878bc802e6ec789818 (patch)
tree6f5ade303e1041e3e8ccc36ea7b3c65ae01d4b98 /javax/imageio
parent0dcbe3d84713c04ba9cff7ed0974286ee7a5f64e (diff)
downloadclasspath-7e19ed027af34eb66eb263878bc802e6ec789818.tar.gz
2008-06-15 Mario Torre <neugens@aicas.com>
* gnu/java/awt/java2d/AbstractGraphics2D.java (setColor): delegate to setPaint. (setPaint): fix to set paint context and foreground color. (imageCache): new field. (drawImage): new codepath for scaling images. (prepareImage): new method. (getPaintContext): set paintContext appropriately. * gnu/java/awt/java2d/RasterGraphics.java (renderScanline): new method, override from superclass to detect correct value of y while rendering the scanline. * gnu/java/awt/java2d/ScanlineConverter.java (renderShape): revert previous patch. * gnu/java/awt/peer/x/XEventPump.java (findMouseEventTarget): new method. (handleButtonPress): use of findMouseEventTarget to detect the correct target. (handleButtonRelease): likewise. * gnu/java/awt/peer/x/XGraphics2D.java (rawDrawImage): clip the target image so that it is completely contained in the destination pixmaps, as per X11 specification. * gnu/java/awt/peer/x/XToolkit.java (createTextField): method implemented. (createButton): likewise. (prepareImage): likewise. (createLabel): likewise. (checkImage): likewise. (createTextArea): likewise. (createCheckbox): likewise. (checkHeadLess): new method. * gnu/javax/imageio/bmp/BMPImageWriter.java (write): don't close the stream. * gnu/javax/imageio/bmp/BMPImageWriterSpi.java (names): added new names to the list of known names for BMP. * java/awt/image/WritableRaster.java (createWritableTranslatedChild): * javax/imageio/ImageIO.java (write): call dispose on ImageWriter after writing of the image.
Diffstat (limited to 'javax/imageio')
-rw-r--r--javax/imageio/ImageIO.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/javax/imageio/ImageIO.java b/javax/imageio/ImageIO.java
index a3d967726..5f0d71d60 100644
--- a/javax/imageio/ImageIO.java
+++ b/javax/imageio/ImageIO.java
@@ -851,6 +851,7 @@ public final class ImageIO
}
w.write(null, img, null);
+ w.dispose();
output.close();
return true;
}