petite/src/wombat/scheme/libraries/gui/ImageFrame.java
void updateInformation() {
		String text = "<html>";
		
		text += "Image size: " + MyImage.getHeight(null) + " rows, " + MyImage.getWidth(null) + " columns\n";
		text += "<br />";
		text += "Current scale: " + FORMAT.format(100 * Scale) + "%";
		text += "<br />";
		
		if (MyRobot != null) {
			int displayX = (int) (ImageX / Scale);
			int displayY = (int) (ImageY / Scale);
			
			if (displayX >= 0 && displayX < MyImage.getWidth(null) && displayY >= 0 && displayY <= MyImage.getHeight(null)) {
				Color c = MyRobot.getPixelColor(ScreenX, ScreenY);
				text += "Color at " + "row " + displayY + " / column " + displayX + ": " + "#[color " + c.getRed() + " " + c.getGreen() + " " + c.getBlue() + "]";
			}
		}
		
		text += "</html>";
			
		ImageInformation.setText(text);
		
		pack();
	}
/**
	 * Update information about the image.
	 */
Update information about the image.
Update information about the image .
void updateInformation() {
		String text = "<html>";
		text += "Image size: " + MyImage.getHeight(null) + " rows, " + MyImage.getWidth(null) + " columns\n";
		text += "<br />";
		text += "Current scale: " + FORMAT.format(100 * Scale) + "%";
		text += "<br />";
		if (MyRobot != null) {
			int displayX = (int) (ImageX / Scale);
			int displayY = (int) (ImageY / Scale);
			if (displayX >= 0 && displayX < MyImage.getWidth(null) && displayY >= 0 && displayY <= MyImage.getHeight(null)) {
				Color c = MyRobot.getPixelColor(ScreenX, ScreenY);
				text += "Color at " + "row " + displayY + " / column " + displayX + ": " + "#[color " + c.getRed() + " " + c.getGreen() + " " + c.getBlue() + "]";
			}
		}
		text += "</html>";
		ImageInformation.setText(text);
		pack();
	}
void updateInformation ( ) { String text = "<html>" ; text += "Image size: " + MyImage . getHeight ( null ) + " rows, " + MyImage . getWidth ( null ) + " columns\n" ; text += "<br />" ; text += "Current scale: " + FORMAT . format ( 100 * Scale ) + "%" ; text += "<br />" ; if ( MyRobot != null ) { int displayX = ( int ) ( ImageX / Scale ) ; int displayY = ( int ) ( ImageY / Scale ) ; if ( displayX >= 0 && displayX < MyImage . getWidth ( null ) && displayY >= 0 && displayY <= MyImage . getHeight ( null ) ) { Color c = MyRobot . getPixelColor ( ScreenX , ScreenY ) ; text += "Color at " + "row " + displayY + " / column " + displayX + ": " + "#[color " + c . getRed ( ) + " " + c . getGreen ( ) + " " + c . getBlue ( ) + "]" ; } } text += "</html>" ; ImageInformation . setText ( text ) ; pack ( ) ; }
Update information about the image.
Update information about the image .