For details about how to compile cximgae and set up projects, see the cximage homepage.
Here is a brief description,
1. Download the source code. Here, this is version 6.0.
2. Open the project with vc6.0 and find the ximacfg. h file. This file is the file format supported by the cximage. Lib file to be compiled.
Cximage files
| ------...
| ------ Header files
| -----...
| ----- Ximacfg. h
3.1 indicates on, and 2 indicates off ..
4. To use cximage in your project, you must edit these settings:
Project Settings
|- C/C++ | |- Code Generation | | |- Use run-time library : Multithreaded DLL (must be the same for | | | all the linked libraries) | | |- Struct member alignment : must be the same for all the linked | | | libraries | |- Precompiled headers : not using precompiled headers | |- Preprocessor | |- Additional Include Directories: ../cximage |- Link |- General |- Object/library modules: ../png/Debug/png.lib ../raw/Debug/libdcr.lib ../jpeg/Debug/jpeg.lib ../zlib/Debug/zlib.lib ../tiff/Debug/tiff.lib ../jasper/Debug/jasper.lib ../cximage/Debug/cximage.lib ...
In your source code you must add#include "ximage.h"
5.Cximage image; <br/> image. load ("test1.png", cximage_format_png); <br/> rect rectsrc = {100,100,200,200,-1,-1}; <br/> rect rectdes = }; <br/> image. draw (PDC-> m_hdc, rectsrc, & rectdes );