toni@1119: /** toni@1119: * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach toni@1119: * toni@1119: * toni@1119: * This program is free software: you can redistribute it and/or modify it under toni@1119: * the terms of the GNU General Public License as published by the Free Software toni@1119: * Foundation, version 2 of the License. toni@1119: * toni@1119: * This program is distributed in the hope that it will be useful, but WITHOUT toni@1119: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS toni@1119: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more toni@1119: * details. toni@1119: * toni@1119: * You should have received a copy of the GNU General Public License along with toni@1119: * this program. Look for COPYING file in the top folder. If not, see toni@1119: * http://opensource.org/licenses/GPL-2.0. toni@1111: */ toni@1111: package net.java.html.canvas; toni@1111: toni@1111: /** toni@1155: * ImageData is an updateable 2-Dimensional Map of Color values. Created ( toni@1155: * createPixelMap / getSnapShot ) by GraphicsContext. you can modify the toni@1155: * individual pixels and render it using paintPixelMap on GraphicsContext toni@1155: * toni@1111: * @author antonepple toni@1111: */ toni@1136: public interface ImageData { toni@1111: toni@1111: public double getHeight(); toni@1111: toni@1111: public double getWidth(); toni@1155: toni@1155: public int getR(double x, double y); toni@1155: toni@1155: public int getG(double x, double y); toni@1155: toni@1155: public int getB(double x, double y); toni@1155: toni@1155: public int getA(double x, double y); toni@1155: toni@1155: public void setR(double x, double y, int value); toni@1155: toni@1155: public void setG(double x, double y, int value); toni@1155: toni@1155: public void setB(double x, double y, int value); toni@1155: toni@1155: public void setA(double x, double y, int value); toni@1111: }