Tools to Capture and Convert the Web

How do I change the width and height of a screenshot?

You can change the height and width to whatever you want, within the restrictions of your package, by passing the desired values to the height and width parameters. A good example of how to do this can be found in the thumbnail size calculator demo, which also explains how to avoid distorting the image when changing the image dimensions.