Package java.awt

Examples of java.awt.Graphics.rotate()


      if (canvas != null) {
        node.writePackEntry();
        Graphics2D g = (Graphics2D)canvas.getGraphics();
        if (image.rotate) {
          g.translate(node.left, node.top);
          g.rotate(-90 * MathUtils.degreesToRadians);
          g.translate(-node.left, -node.top);
          g.translate(-image.getWidth(), 0);
        }
        if (settings.duplicatePadding) {
          int amount = settings.padding / 2;
View Full Code Here


        }
        g.drawImage(image, node.left, node.top, null);
        if (image.rotate) {
          g.translate(image.getWidth(), 0);
          g.translate(node.left, node.top);
          g.rotate(90 * MathUtils.degreesToRadians);
          g.translate(-node.left, -node.top);
        }
        if (settings.debug) {
          g.setColor(Color.magenta);
          int imageWidth = image.getWidth();
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.