⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imgcompress.h

📁 《医学图象的远程传输系统》
💻 H
字号:
/*==========================================================/
/                 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -