retain bitmaps on canvas in android


Last Updated:

  1. ntimesc

    ntimesc New Member This Topic's Starter

    Joined:
    Jul 23, 2010
    Messages:
    1
    Likes Received:
    0
    I am using android 2.2 and I am loading array of bitmap one by one on a canvas after few interval of time at the same place/position i,e, X and Y position (it is one type of rotated image banner).

    Now the problem is
    If i am locking the canvas using following code

    canvas = holder.lockCanvas();

    and after that i am loading some bitmap in on canvas and then lock it using following code

    holder.unlockCanvasAndPost(canvas);

    then again if i lock the canvas and lode some more bitmaps then previously drawn bitmaps are getting wiped out. so how can i preserve/retain the old bitmaps.

    please help me out on this
     

    Advertisement
  2. takeshi

    takeshi Well-Known Member

    Joined:
    Dec 6, 2009
    Messages:
    3,354
    Likes Received:
    281
    You'd have better luck in a developer forum. This is a user forum. There are probably some developers that drop by but I wouldn't count on it.
     

Share This Page

Loading...