Package com.badlogic.gdx.tools.distancefield

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

Related Classes of com.badlogic.gdx.tools.distancefield.DistanceFieldGenerator

Copyright © 2018 www.massapicom. 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.