Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
I am trying to make a program which shows my favorite website as a desktop background but I am facing problem in converting HTML code to image.There is one API named htmltoimage on code.google.com but it doesn't work properly.I have searched lots of resource but there is no free API which can help me solve this problem.If you know any API or idea that can help me solve this problem, please let me know.

Thank you.
Posted
Updated 3-Jan-14 11:11am
v2
Comments
Sergey Alexandrovich Kryukov 3-Jan-14 17:46pm    
Why? Do you think it would look cute?.. :-)
—SA

1 solution

You are "facing problem in converting HTML code to image" because there is not such "conversion" in principle.

Each fixed HTML does not produce any fixed image (excluding some pathological cases). The result on HTML rendering depends on this HTML and also on the size of the browser window and other factors, such as video card properties and screen settings. If you found some code for doing such "conversion" (probably you mean http://code.google.com/p/java-html2image/[^]), it means that it takes HTML and use some additional assumptions or additional information. If you don't like how it works, take it source code, figure out how it works and modify according to your needs. It's quite unlikely that anyone else would volunteer to do such pretty weird thing for you.

Good luck,
—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900