[OpenJDK 2D-Dev] RFR: 8166038 BufferedImage methods getTileGridXOffset() and getTileGridYOffset() return a non 0 value for sub images

Martin Desruisseaux martin.desruisseaux at geomatys.com
Fri Apr 24 13:08:08 UTC 2020


Hello Jayathirth

Le 24/04/2020 à 14:32, Jayathirth D v a écrit :

> Then its better if we can include scenarios in test case(like using 
> RenderedImage) to actually verify this behaviour(non-zero grid 
> offsets) instead of just having BufferedImage.
>
No problem, I can edit the patch. But by scenario do you mean a static 
method like below?

    /**
      * Verifies that the tile grid offsets provide a consistent mapping
      * from the tile coordinate system and to the pixel coordinate system.
      */
    static void verifyTileGridOffsets(RenderedImage img) {
        ...
    }

Martin


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/2d-dev/attachments/20200424/2e717038/attachment.htm>


More information about the 2d-dev mailing list