How to use Graphics.VCENTER|Graphics.HCENTER

by manohar » Wed, 24 Jun 2009 20:11:37 GMT

Sponsored Links
 Hi All

I am porting a game from J2ME to Android. In J2ME the code is as
g.drawImage(image,x,y,Graphics.HCENTER | Graphics.VCENTER)

In android i have written has

g.drawBitmap(image, x, y, paintObject);

Here i do not have a ooption to specify the anchor position.  Can any
one pls tell me how to specifiy anchor position in andorid. By defult
in andorid it is taking as Graphics.LEFT | Graphics.TOP.

pls help