Examples of unloadImage()


Examples of com.badlogic.gdx.tools.imagepacker.TexturePacker2.Rect.unloadImage()

    // Strip extension.
    int dotIndex = name.lastIndexOf('.');
    if (dotIndex != -1) name = name.substring(0, dotIndex);

    Rect rect = addImage(image, name);
    if (rect != null && settings.limitMemory) rect.unloadImage(file);
  }

  /** The image will be kept in-memory during packing. */
  public Rect addImage (BufferedImage image, String name) {
    Rect rect = processImage(image, name);
View Full Code Here

Examples of com.badlogic.gdx.tools.texturepacker.TexturePacker.Rect.unloadImage()

    // Strip extension.
    int dotIndex = name.lastIndexOf('.');
    if (dotIndex != -1) name = name.substring(0, dotIndex);

    Rect rect = addImage(image, name);
    if (rect != null && settings.limitMemory) rect.unloadImage(file);
  }

  /** The image will be kept in-memory during packing.
   * @see #addImage(File) */
  public Rect addImage (BufferedImage image, String name) {
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.