|
What
is DLL?
DLL
is an abbreviation for Dynamic Link Library. DLLs are shared files
(ie several programs need them in order to run) and they can contain
programming resources such as functions, code, icons, data, etc.
What
is COM-DLL?
COM
(Component Object Model) is technology for Microsoft's OLE (compound
documents) and ActiveX (Internet-enabled components) and it is platform-independent.
Generally, it defines interfaces on an object, and allows objects
to interact across process and computer boundaries.
|
ImageConverter.dll, imgcnvrt.dll
| These DLL files contain a function that allows
you to convert, resize and rotate images. The library consists
of 2 files: ImageConverter.dll - the usual regular DLL
file; imgcnvrt.dll - COM DLL file. |
| |
|
INPUT IMAGE FORMATS
|
OUTPUT IMAGE FORMATS
|
Bitmaps: BMP,DIB,RLE
CompuServe GIF: GIF
JPEGs: JPG,JPEG,JPE,JFIF,JIF
JPEG2000: JP2,J2C,J2K,JPC
Photodhop: PSD
Portable Bitmaps: PBM,PGM,PPM,PXM
Portable Network Graphics: PNG
Targa: TGA,VDA,ICB,VST
TIFFs: TIF,TIFF,FAX,G3N,G3F
Windows Cursor: CUR
Windows Enhanced Metafile: EMF
Windows Icon: ICO
Windows Metafile: WMF
Wireless Bitmap: WBMP
ZSoft Paintbrush: PCX,DCX
|
Adobe Acrobat: PDF
Bitmaps: BMP
CompuServe GIF: GIF
JPEGs: JPG
JPEG2000: JP2,J2K
Portable Bitmaps: PXM
Portable Network Graphics: PNG
Targa: TGA
TIFFs: TIF
Windows Icon: ICO
Wireless Bitmap: WBMP
ZSoft Paintbrush: PCX,DCX
|
|
|
|
SYNTAX
|
DLL file contains a single function:
ConvertImage(FN1: PCHAR; FN2:PCHAR; NewWidth:integer;
NewHeight:integer; Rotation:integer; Photometric:integer;
Compression:integer; Page:integer);
FN1 - source filename with full path;
FN2 - destination filename with full path;
NewWidth, NewHeight - new
image dimensions for resizing. To skip resizing set both parameters
to 0. To resize maintaining aspect ratio: parameter NewWidth
must be set to the longest side of the new image (width or
height), and the parameter NewHeight
should be set to 0.
Rotation: 0-skip rotation;
1-rotate left; 2-rotate right; 3-rotate 180 degrees; 4-automatic
rotation according to EXIF_orientation tag (for JPEG or TIFF
only). After rotation is finished, the value of EXIF_orientation
tag (if it exists) will be reset to 0.
Photometric - this option
is effective, if destination format is JPEG, JPEG2000 or TIFF.
Compression - this option
is effective, if destination format is JPEG, JPEG2000 or TIFF.
Page - this option is effective,
if multipage TIFF file is specified as source file. It can
be used to specify the page to be converted. If Page=0
then all pages of multipage TIFF will be converted to set
of files. For multipage TIFF files a string "-page-X"
will be added to output filenames automatically. Say, when
converting a multipage TIFF file "test.tiff"
to "test.jpg" a set of files
"test-page-1.jpg", "test-page-2.jpg" etc... will be created.
|
|