Examples of DrawImage()


Examples of ae.java.awt.Graphics.drawImage()

            new BufferedImage(model, raster, model.isAlphaPremultiplied(),
                              null);

        Graphics g = bufferedImage.getGraphics();
        try {
            g.drawImage(image, 0, 0, width, height, null);
        } finally {
            g.dispose();
        }

        try {
View Full Code Here

Examples of ae.java.awt.Graphics2D.drawImage()

        }

        if (savdest != null) {
            Graphics2D big = savdest.createGraphics();
            try {
                big.drawImage(dest, 0, 0, null);
            } finally {
                big.dispose();
            }
            return savdest;
        } else {
View Full Code Here

Examples of cli.MonoTouch.CoreGraphics.CGContext.DrawImage()

        }

        @Override public void Draw (RectangleF frame) {
            super.Draw(frame);
            CGContext ctx = UIGraphics.GetCurrentContext();
            ctx.DrawImage(frame, image.cgImage());
        }
    }
}
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.columns.utils.ColumnImageClickArea.drawImage()

            false, SWT.BOTTOM | SWT.CENTER);
        gcImage.setFont(null);

        for (Iterator iter = listClickAreas.iterator(); iter.hasNext();) {
          ColumnImageClickArea clickArea = (ColumnImageClickArea) iter.next();
          clickArea.drawImage(cell, gcImage);
        }
      } finally {
        gcImage.dispose();
      }
View Full Code Here

Examples of com.emitrom.lienzo.client.core.Context2D.drawImage()

                ScratchCanvas scratch = new ScratchCanvas(m_destinationWidth, m_destinationHeight);

                Context2D context = scratch.getContext();

                context.drawImage(m_imageJSO, m_x, m_y, m_width, m_height, 0, 0, m_destinationWidth, m_destinationHeight);

                ImageData imageData = context.getImageData(0, 0, m_destinationWidth, m_destinationHeight);

                // Now draw the image again, replacing each color with the color key
View Full Code Here

Examples of com.google.code.appengine.awt.Graphics.drawImage()

            image.getWidth(observer),
            image.getHeight(observer),
            (bkg == null) ? BufferedImage.TYPE_INT_ARGB : BufferedImage.TYPE_INT_RGB);
        Graphics g = bufferedImage.getGraphics();
        if (bkg == null) {
            g.drawImage(image, 0, 0, observer);
        } else {
            g.drawImage(image, 0, 0, bkg, observer);
        }
        return bufferedImage;
    }
View Full Code Here

Examples of com.google.code.appengine.awt.Graphics2D.drawImage()

        }
        int w = pg.getWidth();
        int h = pg.getHeight();
        PdfTemplate tp = cb.createTemplate(w, h);
        Graphics2D g2d = tp.createGraphics(w, h, true, quality);
        g2d.drawImage(awtImage, 0, 0, null);
        g2d.dispose();
        return getInstance(tp);
    }

    // image from indirect reference
View Full Code Here

Examples of com.google.gwt.canvas.dom.client.Context2d.drawImage()

        // tell it to scale image
        context.scale(scaleToRatioh, scaleToRatiow);

        // draw image to canvas
        context.drawImage(imageElement, sx, sy, sw, sh, dx, dy, dw, dh);

        // get image data
        double w = dw * scaleToRatioh;
        double h = dh * scaleToRatiow;
        ImageData imageData = context.getImageData(0, 0, w, h);
View Full Code Here

Examples of com.itextpdf.awt.PdfGraphics2D.drawImage()

        }
        int w = pg.getWidth();
        int h = pg.getHeight();
        PdfTemplate tp = cb.createTemplate(w, h);
        PdfGraphics2D g2d = new PdfGraphics2D(tp, w, h, null, false, true, quality);
        g2d.drawImage(awtImage, 0, 0, null);
        g2d.dispose();
        return getInstance(tp);
    }
}
View Full Code Here

Examples of com.jgraph.gaeawt.java.awt.Graphics2D.drawImage()

    if (finalDst != null)
    {
      Graphics2D g = finalDst.createGraphics();
      g.setComposite(AlphaComposite.Src);
      g.drawImage(dst, 0, 0, null);
    }
    else
    {
      finalDst = dst;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.