Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Android and the fly likes Write layouts to the bitmap file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Write layouts to the bitmap file" Watch "Write layouts to the bitmap file" New topic
Author

Write layouts to the bitmap file

chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 629

How to write the layout to the bitmap file(on sdcard).For example relativelayout to the jpeg file.

Thanks in advance.


http://www.androcid.com/
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

You have created a lot of topics for similar kind of problems and it is confusing me. Isn't this problem the same as this one which is already solved??


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 629

The both problems are different.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

I'm not able to understand how these two problems are different. In the other thread you asked how to create image from Canvas, now you are asking how to create image from View. The code sample that I gave you link to does exactly this. It creates an image representation of a view (using Canvas) and writes it to a file (it writes the file in PNG format, but its easy to switch it to JPEG format)...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Write layouts to the bitmap file
 
Similar Threads
How to save a Path & Paint object to file.
reading in files
Getting Bitmap from Canvas and converting it into image file format
How can I convert a Hex stream to a bitmap?
Best way to keep track of numbers used