Use this method to save the current page as an image. The
supplied path is used as the destination. Any existing file will be
overwritten.
When you save the current page the image type is inferred from
the file path you specify. You can save as BMP, JPEG, GIF, TIFF or
PNG.
The width and height of the output image default to the width
and height of the page. If you specify a different width and height
the contents of the page will be scaled to fit the new image
size.
The quality of the output image defaults to 75. This provides a
good compromise between image quality and size for JPEG output. You
can override this quality using the quality parameter.
The source rectangle for the image defaults to the entire area
of the HTML page. However you can choose to draw a selected portion
of the page using the srcLeft, srcTop, srcWidth and srcHeight
parameters.
The Save method will not return until all the resources required
by the page are fully loaded or the timeout expires. If the timeout
expires before all the resources are fully loaded you may get an
incomplete page rendered. You can exert finer control over the page
load process using the Load method and the
Timeout, Loaded and Loading properties.
If you need to obtain a page as raw data you can use the
GetAs function.
|