Project

General

Profile

Revision 512

fixed preliminary image buffering

View differences:

trunk/code/projects/colonet/client/Colonet.java
865 865
	
866 866
		public WebcamPanel () {
867 867
			super();
868
			buffer = new BufferedImage(this.getWidth(), this.getHeight(), BufferedImage.TYPE_INT_RGB);
869 868
		}
870 869
		
871 870
		public synchronized void setImage (BufferedImage newimg) {
......
907 906
			}
908 907
			
909 908
			// Draw everything onto the buffer
909
			buffer = new BufferedImage(getWidth(), getHeight(), BufferedImage.TYPE_INT_RGB);
910 910
			Graphics2D bufferedGraphics = (Graphics2D)buffer.getGraphics();
911 911
			bufferedGraphics.setColor(Color.GRAY);
912 912
			bufferedGraphics.fillRect(0, 0, this.getWidth(), this.getHeight());

Also available in: Unified diff