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!!


    OiuNt


--~--~---------~--~----~------------~-------~--~----~



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. With no previous programming knowledge / experience, how do I get started creating an app?

Programming good Java is not something you learn on a weekend. Java is a
serious Object Oriented Language. Any experience with OO-languages help
alot. Javascript in fact is not really OO. With various libraries you can
give it an OO touch but its still only a  scripting language.

I recommend any good Javabooks, unfortunately I German and I used
http://www.galileocomputing.de/openbook/javainsel6 but that is of course in
German.
Oreilly has a java book: http://oreilly.com/catalog/javawt/book/index.html
http://www.techbooksforfree.com/java.shtml has some more books... So in
general search for Object Orientation as it is the principle of modern java
programming and Java as the programming language.

cheers

falko

2008/9/29 Morisato13 <[EMAIL PROTECTED]>




--~--~---------~--~----~------------~-------~--~----~

2. IPhone/Verizon Rumor

Link below:

http://9to5mac.com/cdma-iphone-verizon-sprint

Shane

--~--~---------~--~----~------------~-------~--~----~

3. How to launch SMS message edit from API

4. On screen Key board

5. Keyguardmanager

6. With no previous programming knowledge / experience, how do I get started creating an app?

7. Vibrate constructor is not public and not documented in API Differences