APISonar


amidst.gui.main.viewer.Graphics2DAccelerationCounter.log

> amidst > gui > main > viewer > Graphics2DAccelerationCounter > log
amidst APIs gui APIs main APIs viewer APIs Graphics2DAccelerationCounter APIs log APIs

Example 1
private final Graphics2DAccelerationCounter accelerationCounter;

	public void draw(Fragment fragment, Graphics2D g2d, float time) {
		int scale = resolution.getStep();
		g2d.scale(scale, scale);
		Object oldHint = g2d.getRenderingHint(RenderingHints.KEY_INTERPOLATION);
		Object newHint = getRenderingHint(g2d);
		g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION, newHint);
		BufferedImage image = fragment.getImage(declaration.getLayerId());
		accelerationCounter.log(image);
		g2d.drawImage(image, 0, 0, null);
		g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION, oldHint);
	}