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.
According to API documentation, this version of Image.createImage is expected to preserve transparency if the original image is immutable:
To find out what could cause the loss of transparency at flipped image, check whether 1) source image is immutable and 2) whether pixels at source image are transparent indeed (
alphachannel value is 0), as explained in API docs for Image class, Alpha Processing section: