Revision 12316

View differences:

branches/v10/extensions/extAnnotations/src/com/iver/cit/gvsig/fmap/operation/strategies/Annotation_Strategy.java
266 266
//        geometry=null;
267 267
        BufferedImage bi=new BufferedImage(image.getWidth(),image.getHeight(),BufferedImage.TYPE_INT_ARGB);
268 268
        Graphics2D gBi=(Graphics2D)bi.getGraphics();
269
        Point2D offset=viewPort.getOffset();
270
        gBi.translate(-offset.getX(),-offset.getY());
269 271
        // Copia draw AttrInTableLabeling
270 272
        Annotation_Legend l = (Annotation_Legend) capa.getLegend();
271 273
        FSymbol sym = (FSymbol) l.getDefaultSymbol();
......
295 297
            int fontStyle = sym.getFont().getStyle();
296 298
            int fontColor = sym.getFontColor().getRGB();
297 299
            long t1 = System.currentTimeMillis();
298
            Point2D offset=viewPort.getOffset();
300

  
299 301
            for (int i = bs.nextSetBit(0); i >= 0; i = bs.nextSetBit(i + 1)) {
300 302
                if (cancel.isCanceled()) {
301 303
                    break;
......
427 429
                }
428 430
                //Al dibujar esta imagen sobre el graphics la trasparencia no puede existir.
429 431
                if (i%1000==0){
430
                	 g.drawImage(bi,(int)offset.getX(),(int)offset.getY(),null);
432
                	 g.drawImage(bi,0,0,null);
431 433
                }
432 434
            }
435
            gBi.translate(offset.getX(),offset.getY());
433 436
            g.drawImage(bi,(int)offset.getX(),(int)offset.getY(),null);
434 437
            System.err.println(System.currentTimeMillis()-t1+"millis");
435 438

  

Also available in: Unified diff