i load picture sd card , display on canvas. have list of pictures , want diplay picture selected user. have use canvas.drawbitmap or canvas.drawpicture functions, don't know how. thanks!
in :
void draw(canvas c) { c.save(); c.drawcolor(0xff000000); dodraw(c); //method call set image } public void dodraw(canvas c) { resources res = getresources(); bitmap bm = bitmapfactory.decoderesource(res, r.drawable.yourimage); c.drawbitmap(bm, 0, 0, null); }
Comments
Post a Comment