Examples of scaleY()


Examples of ch.sahits.game.graphic.image.IOpenPatricianPainter.scaleY()

    int constantBuffer = cornerDim+cornerDim/2+mortarDim*countComplete-mortarDim;
    int platingDestDim =  rect.height-TOP_STATUS_HEIGHT-constantBuffer;
    img = loader.getImage("reightBorderMiddle");
    int platingOrigDim = countComplete*img.getHeight();
    double scale = platingDestDim*1.0/platingOrigDim;
    BufferedImage plate = opPainter.scaleY(img, (int)Math.rint(img.getHeight()*scale));
    startX = rect.x+rect.width-img.getWidth();
    int startY = rect.y+TOP_STATUS_HEIGHT;
    // draw top right corner
    img = loader.getImage("rightTopBorderCorner");
    img = img.getSubimage(0, img.getHeight()/2, img.getWidth(), img.getHeight()/2);
View Full Code Here

Examples of ch.sahits.game.graphic.image.IOpenPatricianPainter.scaleY()

        startY += img.getHeight();
      } else {
        // fill all the excessive space
        int height = rect.height-cornerDim-startY;
        img = loader.getImage("reightBorderMiddle"); // overriding since there is no more mortar to be drawn
        plate = opPainter.scaleY(img, height);
        gScr.drawImage(plate, startX, startY, null);
        startY += height;
      }
    }
    img = loader.getImage("rightBottomBorderCorner");
View Full Code Here

Examples of ch.sahits.game.graphic.image.IOpenPatricianPainter.scaleY()

      ornamentName="Ornament310x162";
    } else if (height<298){
      ornamentName="Ornament310x185";
    }
    img = loader.getImage(ornamentName);
    img = opPainter.scaleY(img, height);
    gScr.drawImage(img, rect.x, rect.y+MINMIMAL_DISPLAY_HEIGHT, null);
   
    return background;
  }
  @Override
View Full Code Here

Examples of org.fonteditor.options.coords.Coords.scaleY()

      y_max += gdo.getLineWidthOffsetSouth()
          - gdo.getLineWidthOffsetNorth();
    }

    x_max = coords.scaleX(x_max);
    y_max = coords.scaleY(y_max);

    x_max = ((x_max + scale_factor_x) / scale_factor_x) * scale_factor_x; // + scale_factor_x;
    y_max = ((y_max + scale_factor_y) / scale_factor_y) * scale_factor_y; // + scale_factor_y;

    if (x_max < scale_factor_x)
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.