title: SWT How to print contents of a scrolledComposite?
body: <p>Does anyone know how I would print the contents of a scrolled composite?</p>
  
  <p>Whenver I print onto a GC it will only copy the currently viewable area of the scrolled composite.  What I want is to be able to copy the entire contents of the scrolled composite.</p>
  
  <p>For instance, the code below makes a huge button, inside of a little window.  Whenver I print the gc below, it only will output the small viewable area of the scrolled composite.  Is it possible to print everything in the scrolled composite?</p>
  
  <pre><code>Shell shell = new Shell(getDisplay());
  shell.setLayout(new FillLayout());
  shell.setSize(200, 200);
  shell.setLocation(20, 20);
  
  
  ScrolledComposite sc = new ScrolledComposite(shell, SWT.H_SCROLL| SWT.V_SCROLL);
  sc.setMinSize(availWidth, availHeight + 30);
  
  Button b = new Button(sc, SWT.PUSH);
  b.setText("Button");
  b.setSize(availWidth, availHeight);
  sc.setContent(b);
  
  Image image = new Image(getDisplay(), availWidth, availHeight);
  GC imageGC = new GC(image);
  sc.print(imageGC);
  </code></pre>