I'm developing a game in j2me. I don't need sprites for this game, I'm painting images directly. The method which I'm following to flip an image is as follows. But on device,it is shown as in fig 1.1. How to resolve this problem.? Please help.
Image.createImage(source,0, 0, source.getWidth(), source.getHeight(), Sprite.TRANS_ROT180);
fig 1.0 : Before flipping car image
fig 1.1 : After flipping car image
The background is white in color when flipped as seen. Is there any other method to flip an image?
Car width is 60x62 with transparent pixels..but wen the same image is flipped,transparency is gone with white background.