***NOTES FOR DIjpg.dll***

-Notes for C++
Most of the code is from the IJG , except DIwrjpeg.c and DIcommon.h .
Code was compiled using MSVC++ 6.0 .

The function's signature is :

long DIAPI DIWriteJpg ( char* DestPath    ,
			long  quality     ,
			long  progressive )

long DIAPI DIBmpToJpg ( char *SrcPath		,
			char *DestPath		,
			long quality        ,
			long progressive    )

See possible return values in "DIcommon.h"


-Notes for Visual Basic
A sample program is provided for the DIjpg library . However , here is how to use the lib :

Save your image as "C:\tmp.bmp"
Call the function with your FULL destination path , quality (%) and 0 for non-progressive or
1 for proggressive JPEG .
Destroy "C:\tmp.bmp"

The declaration for the function is :
Declare Function DIWriteJpg Lib "DIjpg.dll" (ByVal DestPath As String , ByVal quality As Long , ByVal progressive As Long) As Long
Declare Function DIBmpToJpg Lib "DIjpg.dll" (ByVal SrcPath As String, ByVal DestPath As String, ByVal quality As Long, ByVal progressive As Long) As Long

The new function, DIBmpToJpg, only requires that you specify the bitmap and JPEG image paths. This prevents from having to save
in "C:\tmp.bmp"..

You MUST specify the SrcPath and DestPath declarations BYVAL , or you will get some nasty UniCode errors .
If you do not place DIjpg.dll in the WINDOWS\System directory , specify the path in your declaration .