Examples of AffineTransformOp


Examples of java.awt.image.AffineTransformOp

        }

        if(op == null) {
            drawImage(bufImage, x, y, null);
        } else if(op instanceof AffineTransformOp){
            AffineTransformOp atop = (AffineTransformOp) op;
            AffineTransform xform = atop.getTransform();
            Surface srcSurf = Surface.getImageSurface(bufImage);
            int w = srcSurf.getWidth();
            int h = srcSurf.getHeight();
            blitter.blit(0, 0, srcSurf, x, y, dstSurf, w, h,
                    (AffineTransform) transform.clone(), xform,
View Full Code Here

Examples of java.awt.image.AffineTransformOp

        }

        if(op == null) {
            drawImage(bufImage, x, y, null);
        } else if(op instanceof AffineTransformOp){
            AffineTransformOp atop = (AffineTransformOp) op;
            AffineTransform xform = atop.getTransform();
            Surface srcSurf = Surface.getImageSurface(bufImage);
            int w = srcSurf.getWidth();
            int h = srcSurf.getHeight();
            blitter.blit(0, 0, srcSurf, x, y, dstSurf, w, h,
                    (AffineTransform) transform.clone(), xform,
View Full Code Here

Examples of java.awt.image.AffineTransformOp

 
    // rotate image2 into image3
 
    AffineTransform t = AffineTransform.getRotateInstance(
      Math.PI/2, image2.getWidth() / 2, image2.getHeight() / 2);
    AffineTransformOp ato = new AffineTransformOp(t,
      AffineTransformOp.TYPE_BICUBIC);
    BufferedImage image3 = new BufferedImage(
      size, size, mConverterType.getImageType());
    image3 = ato.filter(image2, image3);
 
    // convert image3 to a picture and then back to an image (4)
 
    picture = converter.toPicture(image3, 0);
    BufferedImage image4 = converter.toImage(picture);
View Full Code Here

Examples of java.awt.image.AffineTransformOp

                h = (int) Math.round(w * d);
            }

            AffineTransform xform = AffineTransform.getScaleInstance((double) h
                    / (double) fullH, (double) w / (double) fullW);
            AffineTransformOp op = new AffineTransformOp(xform,
                    AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
            BufferedImage newImage = new BufferedImage(w, h,
                    BufferedImage.TYPE_INT_RGB);
            Graphics2D gr = newImage.createGraphics();
            int top = 0;
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.