Quick slick question on different ways to render an image

I have started to make a game using the awesome Slick library, and everything’s going fine, but I figured out there is more than one way to render an image. I usually use


public void draw(Graphics g)
{
     g.drawImage(image,0,0);
}

but I found out that i can just do this:


public void draw()
{
     image.draw(0,0);
}

Are there any differences in speed or anything? Any other/better ways to render an image?

No differences really. The first one is there so that it’s familiar to Java 2D users. It draws the image in terms of the graphics context and as such can sometimes make things cleaner (rotate the whole context for instance). Using the image directly (as in the second case) provides a few more ways to draw (flash etc).

Kev