Hi,
I have some problem in using Anchor Points for drawImage method:
g.drawImage(image1,50,50,LEFT);//works well
g.drawImage(image1,50,50,HCENTER);//error message variable HCENTER not found in class etc...
can you help me?
eml
Hi,
I have some problem in using Anchor Points for drawImage method:
g.drawImage(image1,50,50,LEFT);//works well
g.drawImage(image1,50,50,HCENTER);//error message variable HCENTER not found in class etc...
can you help me?
eml
Hi,
Anchor points (LEFT, TOP, HCENTER, etc...) are static attributes of Graphics class.
For example, this should work:
g.drawImage(image1,50,50, Graphics.TOP|Graphics.LEFT);
g.drawImage(image1,50,50, Graphics.HCENTER|Graphics.VCENTER);
Best Regards,
JP / Forum Nokia
Last edited by jp_fn; 2003-04-14 at 13:08.
thanks your answer is really usefull.
all works fine now.
eml