Occasionally you may want to create high definition (HD) or retina screenshots. High Definition screenshots are slower and become even slower with larger dimensions for this reason it is recommended not to create too large an image. As such you will probably also need to specify a delay to give the screenshot chance to render.
The following code shows how to make a high definition screenshot in each language, by setting the HD parameter to true. This creates a high resolution image by doubling the image width and height, increasing the resolution of a standard screenshot by four times. However it would be counter productive to set a width and height to anything but -1 as this would cause the image to be scaled down again!
GrabzIt("Sign in to view your Application Key").ConvertURL("https://www.bbc.co.uk",
On the left is an example of a standard screenshot and on the right is a high definition screenshot produced by the code above, both screenshots have the same height.
Setting the Image Resolution Precisely
High definition screenshots of different sizes can also be created by specifying a width larger than the browser width. GrabzIt then scales the browser to stop the image being stretched. However measurements taken when creating high definition screenshots in this way are inaccurate, which is why full-length screenshots are not always perfectly sized in this mode and HD will not work properly when targeting elements. If you want to target elements it is recommended you set the HD parameter as shown above.