|
Packit |
5e46da |
/*
|
|
Packit |
5e46da |
* This file is part of libbluray
|
|
Packit |
5e46da |
* Copyright (C) 2012 libbluray
|
|
Packit |
5e46da |
*
|
|
Packit |
5e46da |
* This library is free software; you can redistribute it and/or
|
|
Packit |
5e46da |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
5e46da |
* License as published by the Free Software Foundation; either
|
|
Packit |
5e46da |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
5e46da |
*
|
|
Packit |
5e46da |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
5e46da |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
5e46da |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
5e46da |
* Lesser General Public License for more details.
|
|
Packit |
5e46da |
*
|
|
Packit |
5e46da |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
5e46da |
* License along with this library. If not, see
|
|
Packit |
5e46da |
* <http://www.gnu.org/licenses/>.
|
|
Packit |
5e46da |
*/
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
package java.awt.image;
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
import sun.awt.image.BufferedImagePeer;
|
|
Packit |
5e46da |
import java.awt.Graphics2D;
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public class BufferedImage extends java.awt.Image
|
|
Packit |
5e46da |
{
|
|
Packit |
5e46da |
private transient BufferedImagePeer peer;
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public static final int TYPE_INT_ARGB = 2;
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
private BufferedImage (BufferedImagePeer peer) {
|
|
Packit |
5e46da |
this.peer = peer;
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public Graphics2D createGraphics() {
|
|
Packit |
5e46da |
return (Graphics2D) peer.getGraphics();
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public void flush() {
|
|
Packit |
5e46da |
peer.flush();
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public ColorModel getColorModel() {
|
|
Packit |
5e46da |
return peer.getColorModel();
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public java.awt.Graphics getGraphics() {
|
|
Packit |
5e46da |
return peer.getGraphics();
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public int getHeight() {
|
|
Packit |
5e46da |
return peer.getHeight();
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public int getHeight(ImageObserver observer) {
|
|
Packit |
5e46da |
return peer.getHeight(observer);
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public Object getProperty(String name) {
|
|
Packit |
5e46da |
return peer.getProperty(name);
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public Object getProperty(String name, ImageObserver observer) {
|
|
Packit |
5e46da |
return peer.getProperty(name, observer);
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public String[] getPropertyNames() {
|
|
Packit |
5e46da |
return peer.getPropertyNames();
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public int getRGB(int x, int y) {
|
|
Packit |
5e46da |
return peer.getRGB(x, y);
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public int[] getRGB(int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize) {
|
|
Packit |
5e46da |
return peer.getRGB(startX, startY, w, h, rgbArray, offset, scansize);
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public ImageProducer getSource() {
|
|
Packit |
5e46da |
return peer.getSource();
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public BufferedImage getSubimage(int x, int y, int w, int h) {
|
|
Packit |
5e46da |
return peer.getSubimage(x, y, w, h);
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public int getType() {
|
|
Packit |
5e46da |
return peer.getType();
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public int getWidth() {
|
|
Packit |
5e46da |
return peer.getWidth();
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public int getWidth(ImageObserver observer) {
|
|
Packit |
5e46da |
return peer.getWidth(observer);
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public void setRGB(int x, int y, int rgb) {
|
|
Packit |
5e46da |
peer.setRGB(x, y, rgb);
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public void setRGB(int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize) {
|
|
Packit |
5e46da |
peer.setRGB(startX, startY, w, h, rgbArray, offset, scansize);
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
|
|
Packit |
5e46da |
public String toString() {
|
|
Packit |
5e46da |
return peer.toString();
|
|
Packit |
5e46da |
}
|
|
Packit |
5e46da |
}
|