Hi All,
Today i was writing an HTML to image
rendering tool using the SWT which works pretty well so far. I have attached
to code here too. To this little app i ahve a couple of questions which
i wasnt able to do yet.
- capturing a widget image when not
visible. When i capture the rendered HTML from the browser widget i need
to be visible. I tried to minimize the visibility to only a couple of lines
( see the capture method) but would like to be fully invisible when capturing.
- vertical scroll bar. I cannot get
rid of the vertical scroll bar when capturing at the moment i reduce the
capturing area by 18 pixels (see capture metohd) but ideally i would prefer
not to do that. Is there a way around that?
It would be nice if somebody could give
some help on these two questions.
Thanks in advance
roland
public class DocumentationViewer
{
private Display display;
private Shell shell;
private Browser browser;
private boolean completed
= false;
public DocumentationViewer(String
a_Url)
{
display
= new Display();
shell =
new Shell(display);
shell.setVisible(false);
shell.setLayout(new
FillLayout());