Metafile Converter (Command Line Version) Ver. 2.0 A3

Download
249KB

Outline

This software converts metafile into JPG, BMP, PNG, non-compression TIF, and non-compression PSD. It functions only through command line.


Use

1. Use through command line
 For instance, please input it from command line as follows when you convert "C:\ABC.EMF" into "C:\XYZ.PNG".

 Antialiasing function off
     MetaCon.exe -A- -from "C:\ABC.EMF" -to "C:\XYZ.PNG"

 Antialiasing function on
     MetaCon.exe -A+ -from "C:\ABC.EMF" -to "C:\XYZ.PNG"

2. Setting change
 When MetaCon.exe is used even once, MetaCon.ini is created in the same folder as MetaCon.exe.
 The setting can be changed by editing the content of the ini file.
 The setting of default is shown as follows.

*===============================================================*
[MetaCon]
MagRatioW(%)=100
MagRatioH(%)=100
JpegQuality(1-100)=90
PngQuality(0,1,2,3)=1
MemoryLimit(MB)=64
Reduce256Colors(0,1)=0
Reduce256ColorsMethod(0,1,2)=0
Viewer(0,1)=0
ViewerName=
*===============================================================*

・MagRatioW(%): Magnification ratio (%) of width. The value of same width is 100.

・MagRatioH(%): Magnification ratio (%) of height. The value of same height is 100.

・JpegQuality(1-100): The range is 1 to 100. If this value is heigher, the jpeg image is high quality, but data compression ratio is lower.

・PngQuality(0,1,2,3): The range is 0 to 3. 0 is no compression, 1 is standard compression, 2 is compression of speed priority, and 3 is the highest compression.

・MemoryLimit(MB): It is the size limitation of created image. This software deals with the image as 24 bits DIB Section and about 64MB becomes a limitation of DIB Section in the Windows 95, so the default value is 64. If antialiasing function is on, the limitation is 16MB (64/4).
Even if you set a large value, it may work, but your use of it is entirely at your own risk

・Reduce256Colors(0,1): 0 means outputted image has 24 bits colors (non-reduced colors).
1 means outputted image has 8 bits colors (reduced 256 colors). BMP, PNG, and TIF images are outputted as 8 bits colors images, but Jpeg image is outputted as 8 bits gray scale image. Colors of PSD image is fixed 24 bits, so this setting is ignored.

・Reduce256ColorsMethod(0,1,2): You can specify the method of reduced 256 colors. 0 is MedianCut method, 1 is Octree method, and 2 is error diffusion method

・Viewer(0,1): It is specified whether to open the converted image. 0 means the image isn't open. 1 means the specified viewer open the image.

・ViewerName: Specifyed ViewerName is full path of the location of viewer exe-file. For instance, ViewerName="C:\Program Files\i_view32\i_view32.exe".



Copyright

 As for the copyright of this program, author (Dragon4891) holds it.
 However, the distribution and/or application remain free.
 It is my great appreciation when you can contact me, in the case that
you would like to distribute it.
 It should be noted that I am not responsible for any subsequent damage
caused by the faulty application of this program at all.


Support

If there are an opinion, hope, impression, bug report etc., please
mail me (support@shibaguchi.com).


Acknowledgment

 The following components were used in this Metafile Converter development.
It is my great pleasure to present faithful thanks for each author.
     > DHGL Ver. 1.2 (Mr. Takuo Nakamura)
     > TGLDPNG Ver. 3.43 (Mr. Tarquin)
     > BMP to TIFF ver 3.0 (Mr. Wolfgang Krug)
     > Function BMPToPSD (Mr. Papy)
     > MetaCon original icon (Mr. Mya-Papa)



Revision

2001.11.09 Ver. 1.0 A1 (the first edition)

2002.08.05 Ver. 2.0 A1
・Changing of various settings became possible and it came to be able to preserve.
As a result, magnification of image size, reduced 256 colors, etc. became possible.
・Processing speed improvement in the case of antialiasing function on.
・Program language was changed from Delphi5 to Delphi6.
・Component DHGL 1.1 was newly used.
・Component TGLDPNG was changed from ver 3.31 to 3.43.

2002.08.19 Ver. 2.0 A2
・Component DHGL was changed from 1.1 to 1.2.
・Dealing with non-compression TIF.

2002.08.29 Ver. 2.0 A3
・It came to be able to specify whether to open the created image file just after converted.
・Dealing with 24 bits non-compression PSD.