SaveDIBInJPEGFile

#include "BIJPEG.H"

int CALLBACK SaveDIBInJPEGFile( LPTSTR     lpFileName,
                                                               HANDLE   hDib,
                                                               int               nQuality)

Description

Saves the device independent bitmap (DIB) in JPEG format. The value of nQuality parameter must be in the range of 1 to 100. Increasing the value of the quality parameter will increase the quality of the saved image; the size of the JPEG file will grow. The saved file contains ICC embedded profile of sRGB standard color space.

Parameters

LPTSTR

lpFileName

Pointer to the file name string.

HANDLE

hDib

Device independent bitmap.

int

bQuality

Compression loss ratio.

Additional Information

The Black Ice Imaging Tools use LittleCMS for color conversions. For more information, please read the ICC profile handling and color management in Document Imaging SDK section of the manual.

 

Return values

Returns 0 on success, error code if failed.

Requirements

Header :     Declared in BiJpeg.h; include BiJpeg.h.

Library :    Use BiJpeg.lib.

DLLs :       BiJpeg.dll.