diff options
Diffstat (limited to 'java/com/tigervnc/rfb/PixelBuffer.java')
-rw-r--r-- | java/com/tigervnc/rfb/PixelBuffer.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/java/com/tigervnc/rfb/PixelBuffer.java b/java/com/tigervnc/rfb/PixelBuffer.java index 1b7d2c1a..18d84d5d 100644 --- a/java/com/tigervnc/rfb/PixelBuffer.java +++ b/java/com/tigervnc/rfb/PixelBuffer.java @@ -21,6 +21,7 @@ package com.tigervnc.rfb; +import java.awt.*; import java.awt.image.*; import java.awt.Color; import java.nio.*; @@ -69,6 +70,7 @@ public abstract class PixelBuffer { // specific format. //void getImage(const PixelFormat& pf, void* imageBuf, // const Rect& r, int stride=0) const; + public Image getImage() { return image; } /////////////////////////////////////////////// // Framebuffer update methods @@ -81,4 +83,5 @@ public abstract class PixelBuffer { protected PixelFormat format; protected int width_, height_; + protected Image image; } |