Drawing sprites in Java

How would I go about drawing a sprite in Java (ie. skipping all pixels of a certain colour, leaving the background in those spots intact).

You would think it would be a standard part of the Graphics class, or something similar, but if it's there I haven't found it.

Comments

  • I dont remember them by heart but you can do that using ImageConsumer and ImageProducer class. Look in the api documentation


    : How would I go about drawing a sprite in Java (ie. skipping all pixels of a certain colour, leaving the background in those spots intact).
    :
    : You would think it would be a standard part of the Graphics class, or something similar, but if it's there I haven't found it.
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion