Examples of scale()


Examples of com.google.code.appengine.awt.geom.AffineTransform.scale()

                            .println("TTFGlyfTable: ARGS_ARE_POINTS not implemented.");
                }

                if (ttf.flagBit(SCALE)) {
                    double scale = ttf.readF2Dot14();
                    t.scale(scale, scale);
                } else if (ttf.flagBit(XY_SCALE)) {
                    double scaleX = ttf.readF2Dot14();
                    double scaleY = ttf.readF2Dot14();
                    t.scale(scaleX, scaleY);
                } else if (ttf.flagBit(TWO_BY_TWO)) {
View Full Code Here

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

        double dy = 0;
        double dw = imageElement.getWidth();
        double dh = imageElement.getHeight();

        // 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
View Full Code Here

Examples of com.itstherules.image.AWTImage.scale()

    for (File file : files) {
    try {
      File thumbnailFile = new File(thumbnailsDirectory + file.getName());
      if(!thumbnailFile.exists()){
        IImage image = new AWTImage(file.getAbsolutePath());
        image.scale(125, 125, true, true);
        image.saveAs(thumbnailFile.getAbsolutePath());
        writer.write("<br>Generated thumbnail: <img src=\"/photos/"+currentDirectory+"/thumbnails/"+file.getName()+"\"/><br/>");
        writer.flush();
      }
    } catch (IOException e) {
View Full Code Here

Examples of com.itstherules.image.IImage.scale()

    for (File file : files) {
    try {
      File thumbnailFile = new File(thumbnailsDirectory + file.getName());
      if(!thumbnailFile.exists()){
        IImage image = new AWTImage(file.getAbsolutePath());
        image.scale(125, 125, true, true);
        image.saveAs(thumbnailFile.getAbsolutePath());
        writer.write("<br>Generated thumbnail: <img src=\"/photos/"+currentDirectory+"/thumbnails/"+file.getName()+"\"/><br/>");
        writer.flush();
      }
    } catch (IOException e) {
View Full Code Here

Examples of com.jcloisterzone.ui.ImmutablePoint.scale()

         public ImmutablePoint getScaledOffset(int boxSize) {
             ImmutablePoint point = offset;
             if (order > 0) {
                 point = point.translate(10*order, 0);
             }
             return point.scale(getSquareSize(), boxSize);
         }

         public boolean match(Class<? extends Meeple> meepleType, FeaturePointer fp) {
             if (!meepleType.equals(this.meepleType)) return false;
             if (location != fp.getLocation()) return false;
View Full Code Here

Examples of com.jme3.math.Matrix4f.scale()

        cachedWorldMat.setTranslation(worldTransform.getTranslation());

        TempVars vars = TempVars.get();
        Matrix4f scaleMat = vars.tempMat4;
        scaleMat.loadIdentity();
        scaleMat.scale(worldTransform.getScale());
        cachedWorldMat.multLocal(scaleMat);
        vars.release();
    }

    /**
 
View Full Code Here

Examples of com.jme3.scene.Geometry.scale()

  @Override
  public void simpleInitApp() {

    // create the geometry and attach it
    Geometry teaGeom = (Geometry) assetManager.loadModel("Models/Teapot/Teapot.obj");
    teaGeom.scale(3);

    DirectionalLight dl = new DirectionalLight();
    dl.setColor(ColorRGBA.White);
    dl.setDirection(Vector3f.UNIT_XYZ.negate());
View Full Code Here

Examples of com.jme3.scene.Spatial.scale()

        invWavelength4.z = 1.0f / FastMath.pow(wavelength.z, 4.0f);
    }
   
    private void createGround(String groundTexture) {
        Spatial geom = createSphere();
        geom.scale(getInnerRadius());
        mPlanetGround = new Material(assetManager, "Common/MatDefs/Light/Lighting.j3md");
        mPlanetGround.setTexture("DiffuseMap", assetManager.loadTexture(groundTexture));
        mPlanetGround.setTexture("GlowMap", assetManager.loadTexture("Textures/Planets/Earth/Earthlights2_1280.jpg"));
        mPlanetGround.setFloat("Shininess", 0.01f); // [1,128]
        geom.setMaterial(mPlanetGround);
View Full Code Here

Examples of com.opengamma.analytics.math.matrix.MatrixAlgebra.scale()

   */
  public SimpleParameterSensitivity multipliedBy(final double factor) {
    final MatrixAlgebra algebra = MatrixAlgebraFactory.COMMONS_ALGEBRA;
    final LinkedHashMap<String, DoubleMatrix1D> result = new LinkedHashMap<>();
    for (final String nameCcy : _sensitivity.keySet()) {
      result.put(nameCcy, (DoubleMatrix1D) algebra.scale(_sensitivity.get(nameCcy), factor));
    }
    return new SimpleParameterSensitivity(result);
  }

  /**
 
View Full Code Here

Examples of com.pholser.junit.quickcheck.generator.Precision.scale()

    @Override protected Map<Class<? extends Annotation>, Annotation> configurations() {
        InRange range = mock(InRange.class);
        when(range.min()).thenReturn(min.toString());
        when(range.max()).thenReturn((String) defaultValueOf(InRange.class, "max"));
        Precision precision = mock(Precision.class);
        when(precision.scale()).thenReturn(6);
        return ImmutableMap.<Class<? extends Annotation>, Annotation> builder()
            .put(InRange.class, range)
            .put(Precision.class, precision)
            .build();
    }
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.