RGBBuffer buf = re.render(new PlaneDef(PlaneDef.XY, re.getDefaultT()));
PlaneDef pd = new PlaneDef(PlaneDef.XY, re.getDefaultT()); pd.setZ(re.getDefaultZ()); RGBBuffer buf = re.render(pd);
    private BufferedImage createScaledImage(Pixels pixels, RenderingDef def,                                            Integer sizeX, Integer sizeY)    {		// Original sizes and thumbnail metadata		int origSizeX = pixels.getSizeX();		int origSizeY = pixels.getSizeY();				// Lookup user's rendering definition if one is not given to us		if (def == null)			def = getRenderingDef(pixels);				// Retrieve our rendered data and translate to a buffered image		initializeRenderingEngine(pixels, def);		RGBBuffer buf = re.render(new PlaneDef(PlaneDef.XY, re.getDefaultT()));		BufferedImage image = createBufferedImage(buf, origSizeX, origSizeY);				// Finally, scale our image using scaling factors (percentage).		log.info("Setting xScale factor: " + sizeX + "/" + origSizeX);		float xScale = (float) sizeX / origSizeX;		log.info("Setting yScale factor: " + sizeX + "/" + origSizeX);		float yScale = (float) sizeY / origSizeY;		return iScale.scaleBufferedImage(image, xScale, yScale);    }