Resolution is used to display an image,which is the term used to describe the number of dots, or pixels.Higher resolutions mean more pixels are used to create the image and of course you will see a clearer image.The resolution on a TV monitor or mobile phone monitor is composed of thousands of pixels or dots. You may heard of 800 x 600,which refers to the resolution. This indicates that there are 800 horizontal dots across the monitor and 600 vertical dots.It equals to that the resolution setting on the computer monitor was set for 800 pixels wide by 600 pixels deep.
If you want to set the horizontal resolution when convertingformat file,you should choose a a software which supports this function.HTML Converter Command Line is a such kind of software.It allows you to create previews or thumbnails of web pages in a number of different formats, such as TIF, TIFF, JPG, JPEG, GIF, PNG, BMP, PCX, TGA, JP2 (JPEG2000), PNM, etc. HTML Converter Command Line also allows you to convert web pages to PDF, PS (postscript), WMF, EMF vector formats.At the same time,you can use HTML Converter Command Line to set many kinds of parameters for the image file such as the width,height,resolution and so on.
You can download HTML Converter Command Line at the website http://www.verypdf.com/htmltools/htmltools.zip.
Now you can convertand set the horizontal like the following steps.
1.Run cmd.exe program by clicking “start”—“run” and input “cmd” in “open” edit box of the popup dialog.Then click “OK” button.Or you can press “Windows”+ “R” to realize the same function.
2.Input command line in cmd.exe dialog box.The command line contains called program which is the executable file in HTML Converter Command Line,source file which is the emf file in your computer and target file which you should define yourself.There is a basic structure to describe the command line:
htmltools.exe –xres value “input.emf” output.jpg
NOTE:-xres here indicates the horizontal resolution.Of course you can consider it as the resolution in X direction.
Please see the example which interprets the command line above in Figure1.
"C:\Documents and Settings\admin\Local Settings\Temp\htmltools\htmltools.exe" -xres 500 "C:\Program Files\docPrint Pro v5.0\blank.emf" blank.jpg
"C:\Documents and Settings\admin\Local Settings\Temp\htmltools\htmltools.exe" is the path of htmltools.exe.You can drag the file into cmd.exe dialog box for convenience.
-xres 500 is the value of horizontal resolution of target file,which you can set yourself.
"C:\Program Files\docPrint Pro v5.0\blank.emf" is the path of source file.
blank.jpg is the name of target file.
3.Find the target file in some location of your computer.The target file in this example will be saved in current directory because there’s no information about saving path of the target file in command line.Then you can right click the target file to see its properties.You will find the horizontal resolution has changed to 500 DPI after converting emf to jpg.Please see Figure2.