This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 639

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

Thanks in advance.


Author @ http://www.ideasforideas.org/
Moody blogger who do not like to behave like target setting machines work.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9435
    
  20

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: 639

The both problems are different.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9435
    
  20

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)...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Write layouts to the bitmap file
 
jQuery in Action, 3rd edition