How to merge images?

by OiuNt » Thu, 03 Sep 2009 15:02:01 GMT

Sponsored Links
 Hi everyone,
    in my application, i want merge serveral images dynamically
accroding to the user's selection, and the merged image will be
scrolled and zoomed.
    i extends View to OverlayImageView, which has the properties
background Bitmap, layers Bitmap and Matrix. in the onDraw event, i
draw the background Bitmap and layers bitmap sequently by the method
canvas.canvas.drawBitmap(image, imgMatrix, null).
    however, if all the bitmaps are stored in memery, it leads to the
Out Of Memory problem. so, i have to read the image in the onDraw
event by the method BitmapFactory.decodeResource, but it's slow to
response user's operation, for example, the scroll and zoom the image
will leads to the onDraw event.
    so, does anyone have some good idears ? thanks!!



How to merge images?

by OiuNt » Thu, 03 Sep 2009 15:14:24 GMT

 so my solution is to merge the images into one image at the beginning
and store this image in the memory. when the onDraw is called, the
canvas can only draw this merged image.

however, i can't find out how to merge images.


Sponsored Links

Other Threads

1. emulator (android-sdk-windows-1.0_r1) can not re run app after app crahsed

Hi all,

I tried to run the PhotoStream from
(using android-sdk-windows-1.0_r1, eclipse 3.4 and android plugin 0.8)
The first time the app started, the login screen come and a textbox to
enter username displayed, there was an error with the login process.
After that I could not run the app again, even I tried to delete the
app in the emulator, close eclipse, and re run the app, but I always
received error:
"The application Photostream process
has stopped unexpectedly. Please try again"

The question is how could I reset the emulator state so that I can
start the app and debug at the point the app crash?

Thanks for any suggestion


2. What's max display resolution size on android?

Hi all,
   I have changed display resolution upto 800*600 on android emulator,
and it runs very well. But for more high resolution, emulator can not
startup. Does anyone know what's max resolution size android supports?
if there is no limitation, what should I do to run emulator normally
with high resolution such as 1024*768 ?

Thanks anyway!



3. I've got a great App Idea, but i'm not a programmer

4. SMS Intents Missing From 1.0?

5. To get Images in Drawable Resources.

6. What is adb.exe?

7. Public intent registration system