5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test %W% %E%
26 * @bug 7016495
27 * @summary Test tiny scales of BufferedImage
28 */
29
30 import java.awt.*;
31 import java.awt.geom.*;
32 import java.awt.image.*;
33
34 public class TinyScale {
35 static double tinyscales[] = {
36 1E-0,
37 1E-1,
38 1E-2,
39 1E-3,
40 1E-4,
41 1E-5,
42 1E-6,
43 1E-7,
44 1E-8,
45 1E-9,
46 1E-10,
47 1E-11,
|
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 7016495
27 * @summary Test tiny scales of BufferedImage
28 * @key randomness
29 */
30
31 import java.awt.*;
32 import java.awt.geom.*;
33 import java.awt.image.*;
34
35 public class TinyScale {
36 static double tinyscales[] = {
37 1E-0,
38 1E-1,
39 1E-2,
40 1E-3,
41 1E-4,
42 1E-5,
43 1E-6,
44 1E-7,
45 1E-8,
46 1E-9,
47 1E-10,
48 1E-11,
|