Examples of DistanceFieldGenerator


Examples of com.badlogic.gdx.tools.distancefield.DistanceFieldGenerator

      scale * glyph.getWidth(),
      scale * glyph.getHeight(),
      BufferedImage.TYPE_BYTE_BINARY);
    drawGlyph(input, glyph);
   
    DistanceFieldGenerator generator = new DistanceFieldGenerator();
    generator.setColor(color);
    generator.setDownscale(scale);
    // We multiply spread by the scale, so that changing scale will only affect accuracy
    // and not spread in the output image.
    generator.setSpread(scale * spread);
    BufferedImage distanceField = generator.generateDistanceField(input);
   
    g.drawImage(distanceField, new AffineTransform(), null);
  }
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.