public class RGBFramebuffer extends LinuxFramebuffer
Constructor and Description |
---|
RGBFramebuffer(NativeFramebuffer fb,
DisplayInterface disp)
Create and initialize new Linux RGB framebuffer.
|
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
createCompatibleBuffer(int width,
int height)
Create pixel-compatible buffer with a specified size.
|
java.awt.image.BufferedImage |
createCompatibleBuffer(int width,
int height,
int stride,
byte[] buffer)
Create pixel-compatible buffer with a specified size and stride.
|
private int[] |
getComponentOffsets()
get color offsets, use the not-used-one for alpha
|
clear, close, createCompatibleBuffer, createCompatibleBuffer, flushScreen, getBufferSize, getDevice, getDisplay, getFixedInfo, getHeight, getMemory, getStride, getVariableInfo, getWidth, initializeMemory, restoreData, setDeviceClose, setFlushEnabled, storeData
public RGBFramebuffer(NativeFramebuffer fb, DisplayInterface disp) throws LastErrorException, java.lang.IllegalArgumentException
fb
- The framebuffer device (e.g. /dev/fb0)disp
- Display manager (e.g. /dev/tty)LastErrorException
java.lang.IllegalArgumentException
public java.awt.image.BufferedImage createCompatibleBuffer(int width, int height)
JavaFramebuffer
createCompatibleBuffer
in interface JavaFramebuffer
createCompatibleBuffer
in class LinuxFramebuffer
width
- Requested image width.height
- Requested image height.public java.awt.image.BufferedImage createCompatibleBuffer(int width, int height, int stride, byte[] buffer)
JavaFramebuffer
createCompatibleBuffer
in interface JavaFramebuffer
createCompatibleBuffer
in class LinuxFramebuffer
width
- Requested image width.height
- Requested image height.stride
- Requested scanline stride.private int[] getComponentOffsets()