Package org.newdawn.slick

Examples of org.newdawn.slick.BigImage


    try {
      image = new Image(baseDir + file, transparentColor);
    } catch (SlickException ex) {
      // To support large textures on older graphic cards
      Log.info("Using BigImage.");
      image = new BigImage(baseDir + file);
    }
    Log.debug(formatLoadMsg("image", key, file));
    ResourceManager.addImage(key, image);
  }
View Full Code Here


 
  /**
   * @see org.newdawn.slick.BasicGame#init(org.newdawn.slick.GameContainer)
   */
  public void init(GameContainer container) throws SlickException {
    original = new BigImage("testdata/bigimage.tga", Image.FILTER_NEAREST, 256);
    bigSheet = new SpriteSheet(original, 16, 16);
  }
View Full Code Here

  /**
   * @see org.newdawn.slick.BasicGame#init(org.newdawn.slick.GameContainer)
   */
  public void init(GameContainer container) throws SlickException {
    // force a 256 pixel limit for testing
    original = image = new BigImage("testdata/bigimage.tga", Image.FILTER_NEAREST, 512);
    sub = image.getSubImage(210,210,200,130);
    scaledSub = sub.getScaledCopy(2);
    image = image.getScaledCopy(0.3f);
    imageX = image.getFlippedCopy(true, false);
    imageY = imageX.getFlippedCopy(true, true);
View Full Code Here

TOP

Related Classes of org.newdawn.slick.BigImage

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.