本文整理汇总了Java中org.newdawn.slick.BigImage类的典型用法代码示例。如果您正苦于以下问题:Java BigImage类的具体用法?Java BigImage怎么用?Java BigImage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BigImage类属于org.newdawn.slick包,在下文中一共展示了BigImage类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.newdawn.slick.BigImage; //导入依赖的package包/类
/**
* @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);
bigSheet = new SpriteSheet(original, 16, 16);
}
示例2: init
import org.newdawn.slick.BigImage; //导入依赖的package包/类
/**
* @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);
}