WHITE PAPERS  |  PRICING  |  DOWNLOADS

 

username

password

 

 

 

 

 

 

 

 

 

 

  Desktop Edition Details  

 

  > Features  

  > Key Benefits  

  > Screenshots  

  > Standards Supported  

  > Pricing  

  > Download Now

 

 

  Developer Resources  

 

  > API Documentation  

  > Developers Guide  

  > Code Examples  

  > Updated Builds  

  > Technical Articles  

 

 

 

 

 

Jump to:

General WebRenderer Functions

  WebRenderer example code base.

 

Advanced WebRenderer functions

 

Application test examples

 

Deploying WebRenderer

WebRenderer DOM

  

  

 

Saving pages as an Image

 

 

 

Saving HTML pages as an image

The IBrowserCanvas method savePageToBitmapImage saves the rendered document to the local disk. The savePageToBitmapImage method can either save the whole document or the section rendered on screen.

Example:
IBrowserCanvas browser = BrowserFactory.spawnMozilla();

// Saves the page to the working directory, the boolean switch is to save the full page and not just area displayed
browser.savePageToBitmapImage(""savepagetest.png", true);

The save format is a PNG image which is a lossless compressed bitmap image

  top

 

 

 Sun, Sun Microsystems, and the Sun Logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries 

Privacy Policy  |   Disclaimer