private Image getStereoImage(int stereoMode, boolean antialias) {
		g3d.beginRendering(rectClip.x, rectClip.y, rectClip.width, rectClip.height, transformManager
				.getStereoRotationMatrix(true), antialias);
		repaintManager.render(g3d, rectClip, modelManager.getFrame(), repaintManager.displayModelIndex);
		g3d.endRendering();
		g3d.snapshotAnaglyphChannelBytes();
		g3d.beginRendering(rectClip.x, rectClip.y, rectClip.width, rectClip.height, transformManager
				.getStereoRotationMatrix(false), antialias);
		repaintManager.render(g3d, rectClip, modelManager.getFrame(), repaintManager.displayModelIndex);
		g3d.endRendering();
		switch (stereoMode) {
		case JmolConstants.STEREO_REDCYAN:
			g3d.applyCyanAnaglyph();
			break;
		case JmolConstants.STEREO_CUSTOM:
			g3d.applyCustomAnaglyph(transformManager.stereoColors);
			break;
		case JmolConstants.STEREO_REDBLUE:
			g3d.applyBlueAnaglyph();
			break;
		default:
			g3d.applyGreenAnaglyph();
		}
		return g3d.getScreenImage();
	}