try { String property = System.getProperty(Mapyrus.PROGRAM_NAME + ".resolution"); if (property != null) resolution = Integer.parseInt(property); else resolution = POINTS_PER_INCH;  } catch (SecurityException e) { resolution = POINTS_PER_INCH; } catch (NumberFormatException e) { resolution = POINTS_PER_INCH; }
	private void setupBufferedImage()	{		int resolution;		double scale;				mGraphics2D.setColor(Color.WHITE);		mGraphics2D.fillRect(0, 0, mImage.getWidth(), mImage.getHeight());				/*		 * If a display resolution is given as a property then use that,		 * otherwise assume 72 DPI.		 */		try		{			String property = System.getProperty(Mapyrus.PROGRAM_NAME + ".resolution");			if (property != null)				resolution = Integer.parseInt(property);			else				resolution = POINTS_PER_INCH;					}		catch (SecurityException e)		{			resolution = POINTS_PER_INCH;		}		catch (NumberFormatException e)		{			resolution = POINTS_PER_INCH;		}		scale = resolution / MM_PER_INCH;				/*		 * Set transform with origin in lower-left corner and		 * Y axis increasing upwards.		 */		mGraphics2D.translate(0, mImage.getHeight());		mGraphics2D.scale(scale, -scale);	}