I've been for the past hour trying to merge two Imageviews into one...
I Know I need to use the canvas, but is the how that escapes me...
I have Imageview1, wich is, by a canvas, the left-most part of a wider image...
In Imageview2 I have a "simple" image... Now I wanht to merge the "visible" parte of Imageview1 with imageview2...
Both files are png with alpha(transparent) areas...
So what I am doing is initializing the canvas with Imageview1, wich should cipy the backgroung on it into the canvas, and then using drawBitmap, I am Loading the Imageview2 bitmap file, again, into the canvas...
My result is only partially correct...I do get the Loaded file into the canvas...but the Imageview1 backgroung, that should have been copied in the initialization, is lost...
Is there any actual examples of this done???
I Know I need to use the canvas, but is the how that escapes me...
I have Imageview1, wich is, by a canvas, the left-most part of a wider image...
In Imageview2 I have a "simple" image... Now I wanht to merge the "visible" parte of Imageview1 with imageview2...
Both files are png with alpha(transparent) areas...
So what I am doing is initializing the canvas with Imageview1, wich should cipy the backgroung on it into the canvas, and then using drawBitmap, I am Loading the Imageview2 bitmap file, again, into the canvas...
My result is only partially correct...I do get the Loaded file into the canvas...but the Imageview1 backgroung, that should have been copied in the initialization, is lost...
Is there any actual examples of this done???