Convert local html file to image

Some people want to convert html file at local disk to image. This can be done with html snapshot easily

Suppose your local html file is c:1.htm, you can call html snapshot like this to convert it into jpg file:

snap.SnapUrl(“file://c:1.htm”, “c:1.jpg”)

If you have a html string, you can do it in two ways.

1. save your html string to a local html file like c:1.htm. Then call SnapUrl in your program like above

2. you can call SnapHtmlString to achieve this.