CxImge
来源:互联网 发布:章燎原的学历知乎 编辑:程序博客网 时间:2024/05/21 14:04
CxImage (Version 6.00)
http://www.codeproject.com/KB/graphics/cximage.aspx
作者可真的是大公无私:If you use this source code in a product, acknowledgement is not required but would be appreciated."
支持BMP, JPEG, GIF, PNG, TIFF, MNG, ICO, PCX, TGA, WMF, WBMP, JBG, J2K 等格式,格式非常丰富,但是似乎没有对医学图像格式的支持。遗憾
如果只需要处理其中的几种格式,可以在配置的头文件ximacfg.h 中找到一些编译开关选项来关闭一些图像库:
//类库配置文件:ximacfg.h
////////////////////////////////////////////////////
// CxImage supported formats
#define CXIMAGE_SUPPORT_BMP 1
#define CXIMAGE_SUPPORT_GIF 1
#define CXIMAGE_SUPPORT_JPG 1
#define CXIMAGE_SUPPORT_PNG 1
#define CXIMAGE_SUPPORT_ICO 1
#define CXIMAGE_SUPPORT_TIF 1
#define CXIMAGE_SUPPORT_TGA 1
#define CXIMAGE_SUPPORT_PCX 1
#define CXIMAGE_SUPPORT_WBMP 1
#define CXIMAGE_SUPPORT_WMF 1
#define CXIMAGE_SUPPORT_JP2 1
#define CXIMAGE_SUPPORT_JPC 1
#define CXIMAGE_SUPPORT_PGX 1
#define CXIMAGE_SUPPORT_PNM 1
#define CXIMAGE_SUPPORT_RAS 1
#define CXIMAGE_SUPPORT_JBG 0 // GPL'd see ../jbig/copying.txt & ../jbig/patents.htm
#define CXIMAGE_SUPPORT_MNG 1
#define CXIMAGE_SUPPORT_SKA 1
#define CXIMAGE_SUPPORT_RAW 1
////////////////////////////////////////////////////
CxImage Structure