@Override
public void render(float delta) {
game.batch.begin();
game.batch.draw(backgroundgame, 0, 0, Gdx.graphics.getWidth(),
Gdx.graphics.getHeight());
game.batch.draw(car.sprite, xcar,
(ycar));
game.batch.end();
/*try {
xcar++;
this.wait(50);
game.batch.end();
} catch (Exception e) {
e.printStackTrace();
}*/
}
此行以RGB格式加载图像。 LAB颜色怎么样?
我发现 Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.img);
不变,但不知道如何使用它。