×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    12

    Frequently update text on image without flicker

    Hi again,

    i'd like to update text on canvas every second without redrawing the image in background every time.
    I thought about something like this:
    Code:
    def printLatitude(lat):
        #Remove former written text
        canvas.text((text_x, text_y), u'        ' , font=(u'Nokia Hindi S60', font_size))
        #Write new latitude on display
        canvas.text((text_x, text_y), unicode(round(lat, 4)) , font=(u'Nokia Hindi S60', font_size))
    But i doesn't remove the former written Text so canvas.text(...) is overwirtten every second, which is neither good looking nor acceptable. Furthermore if i do something like this:
    Code:
    def printLatitude(lat):
        canvas.clear()
        canvas.blit(img)
        #Write new latitude on display
        canvas.text((text_x, text_y), unicode(round(lat, 4)) , font=(u'Nokia Hindi S60', font_size))
    there is a bugging flicker, which isn't acceptable too.
    Do you have any suggestion how to solve this problem?

    Thx in advance
    Simon

  2. #2
    Registered User
    Join Date
    Feb 2010
    Posts
    7

    Re: Frequently update text on image without flicker

    Servus, Hansi !!!

    look here:
    http://discussion.forum.nokia.com/fo...407#post705407

    i had just the same problem, and it works !!!

    Greetings,
    sepperl

Similar Threads

  1. make textbox in canvas
    By mahdi68 in forum Mobile Java General
    Replies: 7
    Last Post: 2009-09-20, 11:46
  2. Adding text to image:(
    By newbie2201 in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2008-06-18, 11:17
  3. can i have background image in rich text editor
    By sunny_singh in forum Symbian
    Replies: 3
    Last Post: 2006-09-01, 10:40
  4. Recommended Sizes for MMS Image, Text and Layout
    By sguthery in forum General Messaging
    Replies: 3
    Last Post: 2003-08-22, 09:10
  5. Update an image in a Canvas
    By zivgr in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2003-07-25, 09:19

Posting Permissions

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