< prev index next >

src/java.desktop/share/classes/java/awt/image/BufferedImage.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 1365,1385 **** * For example, the x coordinate of the location of tile * (0,&nbsp;0). This is always zero. * @return the x offset of the tile grid. */ public int getTileGridXOffset() { ! return raster.getSampleModelTranslateX(); } /** * Returns the y offset of the tile grid relative to the origin, * For example, the y coordinate of the location of tile * (0,&nbsp;0). This is always zero. * @return the y offset of the tile grid. */ public int getTileGridYOffset() { ! return raster.getSampleModelTranslateY(); } /** * Returns tile ({@code tileX},&nbsp;{@code tileY}). Note * that {@code tileX} and {@code tileY} are indices --- 1365,1385 ---- * For example, the x coordinate of the location of tile * (0,&nbsp;0). This is always zero. * @return the x offset of the tile grid. */ public int getTileGridXOffset() { ! return raster.getMinX(); } /** * Returns the y offset of the tile grid relative to the origin, * For example, the y coordinate of the location of tile * (0,&nbsp;0). This is always zero. * @return the y offset of the tile grid. */ public int getTileGridYOffset() { ! return raster.getMinY(); } /** * Returns tile ({@code tileX},&nbsp;{@code tileY}). Note * that {@code tileX} and {@code tileY} are indices
< prev index next >