Sprite.java 文件源码

java
阅读 39 收藏 0 点赞 0 评论 0

项目:osrs-private-server 作者:
public Sprite(String img, int width, int height) {
    try {
        Image image = Toolkit.getDefaultToolkit().createImage(FileOperations.ReadFile(img));
        myWidth = width;
        myHeight = height;
        anInt1444 = myWidth;
        anInt1445 = myHeight;
        drawOffsetX = 0;
        drawOffsetY = 0;
        myPixels = new int[myWidth * myHeight];
        PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, myWidth, myHeight, myPixels, 0, myWidth);
        pixelgrabber.grabPixels();
        image = null;
    } catch (Exception _ex) {
        System.out.println(_ex);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号