< prev index next >

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2011, 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, 2018, 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
*** 39,49 **** public class Kernel implements Cloneable { private int width; private int height; private int xOrigin; private int yOrigin; ! private float data[]; private static native void initIDs(); static { ColorModel.loadLibraries(); initIDs(); --- 39,49 ---- public class Kernel implements Cloneable { private int width; private int height; private int xOrigin; private int yOrigin; ! private float[] data; private static native void initIDs(); static { ColorModel.loadLibraries(); initIDs();
*** 61,71 **** * @param data kernel data in row major order * @throws IllegalArgumentException if the length of {@code data} * is less than the product of {@code width} and * {@code height} */ ! public Kernel(int width, int height, float data[]) { this.width = width; this.height = height; this.xOrigin = (width-1)>>1; this.yOrigin = (height-1)>>1; int len = width*height; --- 61,71 ---- * @param data kernel data in row major order * @throws IllegalArgumentException if the length of {@code data} * is less than the product of {@code width} and * {@code height} */ ! public Kernel(int width, int height, float[] data) { this.width = width; this.height = height; this.xOrigin = (width-1)>>1; this.yOrigin = (height-1)>>1; int len = width*height;
< prev index next >