}
@Test
public void drawSubImageColored() throws IOException {
final ch.blackspirit.graphics.Image image = imageFactory.createImage(this.getClass().getResource("/player1.png"), true);
context.setGraphicsListener(new GraphicsListener() {
public void draw(View view, Graphics graphics) {
graphics.clear();
graphics.setColor(new Color4f(1, 0, 0, 1));
graphics.drawImage(image, image.getWidth(), image.getHeight(),
image.getWidth() / 4, image.getHeight() / 4, image.getWidth() / 2, image.getHeight() / 2);