mbedward / jaitools

Raster image processing for Java developers
17 stars 15 forks source link

DiskMemImageGraphics clipping fails to use transform #219

Closed mbedward closed 11 years ago

mbedward commented 11 years ago

Reported by Ákos Maróy on the mailing list.

Drawing into a DiskMemImageGraphics object produces different results to Java graphics classes (e.g. from BufferedImage or TiledImage createGraphics methods) when a transform has been applied and clipping is set.

See the list thread for a full explanation.

akosmaroy commented 11 years ago

see a suggested patch here: https://gist.github.com/4612129

now, the raster comparison test fails for me, because the image drawn on the DiskMemImage and BufferedImage are slightly different - one is about 1 pixel higher than the other one. this may be due to rounding errors? you can also visual compare the two images, which are created in /tmp (of course this part should be removed)

mbedward commented 11 years ago

Treating this as fixed in version 1.3.1