Simple use of cximage (compile-> Project Settings-> sample code (PNG transparent texture ))

Source: Internet
Author: User

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 ); 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.