View | Details | Raw Unified | Return to bug 43357
Collapse All | Expand All

(-)PDFGraphics2D.java (-2 / +3 lines)
Lines 522-535 Link Here
522
        if (imageInfo == null) {
522
        if (imageInfo == null) {
523
            // OK, have to build and add a PDF image
523
            // OK, have to build and add a PDF image
524
524
525
            Dimension size = new Dimension(width, height);
525
            Dimension size = new Dimension(img.getWidth(observer), 
526
					img.getHeight(observer));
526
            BufferedImage buf = buildBufferedImage(size);
527
            BufferedImage buf = buildBufferedImage(size);
527
528
528
            java.awt.Graphics2D g = buf.createGraphics();
529
            java.awt.Graphics2D g = buf.createGraphics();
529
            g.setComposite(AlphaComposite.SrcOver);
530
            g.setComposite(AlphaComposite.SrcOver);
530
            g.setBackground(new Color(1, 1, 1, 0));
531
            g.setBackground(new Color(1, 1, 1, 0));
531
            g.setPaint(new Color(1, 1, 1, 0));
532
            g.setPaint(new Color(1, 1, 1, 0));
532
            g.fillRect(0, 0, width, height);
533
            g.fillRect(0, 0, size.width, size.height);
533
            g.clip(new Rectangle(0, 0, buf.getWidth(), buf.getHeight()));
534
            g.clip(new Rectangle(0, 0, buf.getWidth(), buf.getHeight()));
534
            g.setComposite(gc.getComposite());
535
            g.setComposite(gc.getComposite());
535
536

Return to bug 43357