Super imposition?

hackhack

Active Member
Licensed User
Longtime User
I have an imageview with a picture. I have a PNG with transparent areas, is it possible to overlay on the imageview?

(ie, really compose the two, keeping the new areas from the PNG and respecting the transparent areas)
 

Djembefola

Active Member
Licensed User
Longtime User
you can do it with the .drawbitmap method of the canvas object

B4X:
dim cnv as canvas
cnv.initialize(myimageview)
cnv.drawbitmap(...
 
Upvote 0

hackhack

Active Member
Licensed User
Longtime User
It was a NullPointerException, apparently you can't draw on the imageview until it has been AddView'ed to something else.

However even though the source files are the same size the copy looks bigger (when placed on the other picture)

Can I resize a bitmap with transparencies (png source) and have the transparent areas remain or will they disappear?
 
Upvote 0
Top