×

Discussion Board

Results 1 to 3 of 3

Thread: Anchor Points

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    37

    Anchor Points

    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

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Helsinki, Finland
    Posts
    176
    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.

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    37
    thanks your answer is really usefull.
    all works fine now.

    eml

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •