Solved

Convert html to image

Posted on 2003-10-28
7
270 Views
Last Modified: 2010-03-31
I want to take an html file and convert it to an image.  The reason I want to do this is so that I can produce a thumbnail size image of the html file for preview purposes.  I'm not sure if there's a better way to do this, but I'm open to suggestions.
0
Comment
Question by:wheth
  • 2
  • 2
7 Comments
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 9638572
You could render the page using JEditorPane and then use it's graphic context to paint the page to an image. It's (JEditorPane) HTML support is limited though and may not be sufficient for your needs. If not you'll need to find a component capable of satisfactoritly renderering the html, perhaps ICEBrowser.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9640599
Ah *there* you are objects! Been on holiday?
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9642010
0
 
LVL 92

Expert Comment

by:objects
ID: 9645483
Rugby World Cup is on over here.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9652777
Wow - you *must* be pretty interested to let it drag you way from EE ;-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now