- copy capturedScreen instead of using BufferedImage.getSubImage which just creates a reference to the original image

git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@2311 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
Richard Alam 2009-08-20 18:53:58 +00:00
parent 7ab7c6be6a
commit 07dee88a12

View File

@ -2,6 +2,7 @@ package org.bigbluebutton.deskshare;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.awt.image.WritableRaster;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.BlockingQueue;
@ -71,7 +72,11 @@ public class ChangedTileProcessor {
}
private BufferedImage getNewScreen(){
return image.getSubimage(0, 0, image.getWidth(), image.getHeight());
WritableRaster raster = image.copyData( null );
BufferedImage copy = new BufferedImage( image.getColorModel(), raster, image.isAlphaPremultiplied(), null );
return copy;
//return image.getSubimage(0, 0, image.getWidth(), image.getHeight());
}
public void accept(CaptureUpdateEvent event) {