toni@1119: /** toni@1302: * Back 2 Browser Bytecode Translator toni@1302: * Copyright (C) 2012 Jaroslav Tulach toni@1119: * toni@1302: * This program is free software: you can redistribute it and/or modify toni@1302: * it under the terms of the GNU General Public License as published by toni@1302: * the Free Software Foundation, version 2 of the License. toni@1119: * toni@1302: * This program is distributed in the hope that it will be useful, toni@1302: * but WITHOUT ANY WARRANTY; without even the implied warranty of toni@1302: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the toni@1302: * GNU General Public License for more details. toni@1119: * toni@1302: * You should have received a copy of the GNU General Public License toni@1302: * along with this program. Look for COPYING file in the top folder. toni@1302: * If not, see 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@1308: public int getR(int x, int y); toni@1155: toni@1308: public int getG(int x, int y); toni@1155: toni@1308: public int getB(int x, int y); toni@1155: toni@1308: public int getA(int x, int y); toni@1155: toni@1308: public void setR(int x, int y, int value); toni@1155: toni@1308: public void setG(int x, int y, int value); toni@1155: toni@1308: public void setB(int x, int y, int value); toni@1155: toni@1155: public void setA(double x, double y, int value); toni@1111: }