For raster layers:
- We use the JAI tool chain to render into an AWT BufferedImage (one buffer). 
- And then transfer those bytes over to an SWT Image (second buffer).
- And then finally draw the SWT images into a buffer for the layer.

And from there normal "composition" of the layers into a single image takes 
place:
- The buffer from each layer is drawn onto an SWT image
- Any outstanding drawing commands (such as visual feedback from the tools) is 
drawn
- Any thing on the glass layer is drawn

The resulting image is the "buffer" we use to draw the control when asked by 
SWT. 


-- 
Jody Garnett


On Wednesday, 17 April 2013 at 6:29 AM, Juho Kokkonen wrote:

> Hi
> 
> I read that udig supports double buffering during render raster layers. I use 
> mapviewer and i'll set SWT.double_buffered flag at constructor. But how i can 
> use multi layer renderer on rendering my raster layers?
> 
> - Juho
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
> 
> 


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to