Skip to main content

Drawing sprite

1 reply [Last post]
Joined: 2005-04-16

Hi, all!

I have image on black background (JPG format).
If I try to draw it using Graphics2D.drawImage(BufferedImage img, BufferedImageOp op, int x, int y) I'm getting my image on the screen inside black box.

Is it possible to draw the image without background?

(Unfortunately, I can't replace black bkg to transparent)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

You have to use photoshop which can have a transparent layer in the background and save it as a .gif.