framebufferconfiguration.java
来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 64 行
JAVA
64 行
/*
* $Id: FrameBufferConfiguration.java,v 1.2 2003/12/21 07:59:15 epr Exp $
*/
package org.jnode.driver.video;
import java.awt.image.ColorModel;
import org.jnode.awt.image.JNodeBufferedImage;
/**
* @author epr
*/
public abstract class FrameBufferConfiguration {
private final int width;
private final int height;
private final ColorModel colorModel;
/**
* Initialize this instance.
* @param width
* @param height
* @param colorModel
*/
public FrameBufferConfiguration(int width, int height, ColorModel colorModel) {
this.colorModel = colorModel;
this.height = height;
this.width = width;
}
/**
* Gets the width of the screen in pixels
*/
public int getScreenWidth() {
return width;
}
/**
* Gets the height of the screen in pixels
*/
public int getScreenHeight() {
return height;
}
/**
* Gets the color model
*/
public ColorModel getColorModel() {
return colorModel;
}
/**
* Returns a BufferedImage that supports the specified transparency
* and has a data layout and color model compatible with this device.
* This method has nothing to do with memory-mapping a device.
* The returned BufferedImage has a layout and color model that
* can be optimally blitted to this device.
* @see java.awt.Transparency#BITMASK
* @see java.awt.Transparency#OPAQUE
* @see java.awt.Transparency#TRANSLUCENT
*/
public abstract JNodeBufferedImage createCompatibleImage(int w, int h, int transparency);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?