imgcompress.h
来自「《医学图象的远程传输系统》」· C头文件 代码 · 共 36 行
H
36 行
/*==========================================================/
/ Image Compress Library /
/===========================================================/
/ This library do image compress, call ICInit() before /
/call any other functions, and call ICFree() when u finished/
/use this library. ICCompress() will compress an bitmap /
/image to jpeg image. /
/===========================================================/
/ tony /
/ 2002.05.24 /
/==========================================================*/
#include <Ijl.h>
//Initialize the IJL library, allocate memory.
//2002.05.27
BOOL ICInit(const int Channel,JPEG_CORE_PROPERTIES* pjcprops);
//Finalize the IJL library, free the memory.
//2002.05.27
BOOL ICRelease(const int Channel,JPEG_CORE_PROPERTIES* pjcprops);
//Compress the bmp data to the jpeg data.
// Channel - compress the image for which channel, it will use different JPEG_CORE_PROPERTIES.
// pBmp - a whole bitmap file which was read from a 24 bit bitmap file.
// pJpg - the pointer to an assigned memory which will hold the compressed jpeg file,
//it's size will be MAX_JPEG_SIZE.
// JpegSize - return the size of actural jpeg buffer.
//2002.05.27
BOOL ICCompress(const int Channel,JPEG_CORE_PROPERTIES* pjcprops,BYTE* pBmp,BYTE** pJpg,int* JpegSize,BYTE Quality);
//Return the last happened error's description
// Channel - return the error code for which channel.
//2002.05.24
LPCTSTR ICGetLastError(const int Channel);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?