More JavaDoc improvements.
2 * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
3 * <jaroslav.tulach@apidesign.org>
5 * This program is free software: you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License as published by the Free Software
7 * Foundation, version 2 of the License.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 * You should have received a copy of the GNU General Public License along with
15 * this program. Look for COPYING file in the top folder. If not, see
16 * http://opensource.org/licenses/GPL-2.0.
18 package net.java.html.canvas;
21 * ImageData is an updateable 2-Dimensional Map of Color values. Created (
22 * createPixelMap / getSnapShot ) by GraphicsContext. you can modify the
23 * individual pixels and render it using paintPixelMap on GraphicsContext
27 public interface ImageData {
34 public double getHeight();
41 public double getWidth();
44 * get the red value at a specified coordinate
48 * @return the red value as an int (0 -255)
50 public int getR(int x, int y);
53 * get the green value at a specified coordinate
57 * @return the green value as an int (0 -255)
59 public int getG(int x, int y);
62 * get the blue value at a specified coordinate
66 * @return the blue value as an int (0 -255)
68 public int getB(int x, int y);
71 * get the alpha (transparency) value at a specified coordinate
75 * @return the alpha value as an int (0 - 255)
77 public int getA(int x, int y);
80 * set the red value at a specified coordinate
84 * @param value the red value as an int (0 - 255)
86 public void setR(int x, int y, int value);
89 * set the green value at a specified coordinate
93 * @param value the green value as an int (0 - 255)
95 public void setG(int x, int y, int value);
98 * set the blue value at a specified coordinate
102 * @param value the blue value as an int (0 - 255)
104 public void setB(int x, int y, int value);
107 * set the alpha (transparency) value at a specified coordinate
111 * @param value the alpha value as an int (0 - 255)
113 public void setA(int x, int y, int value);