[Disclaimer: All Rights Reserved. You are welcome to reprint it. Do not use it for commercial purposes. Contact Email: feixiaoxing @ 163.com]
Before reading the ftk code, I found that the project uses the pnglib code. Although there are many descriptive files about pnglib on the Internet, there are not many files that are really useful and usable. Therefore, for the convenience of learning, I made a PNG project by myself. The pnglib, zlib library, and Win32 files are all from the Internet. Here we just want to integrate them, these codes can be compiled and run smoothly on Windows.
(1) Principle
PNG is a basic image file format, which is widely used on the Internet due to its lossless compression features.
(2) Code address
Http://download.csdn.net/detail/feixiaoxing/4417088
(3) project content
Zlib: compress and decompress the package;
Pnglib: basic library of PNG;
PNG: Win32 project, which allows you to display, save, and enlarge images;
PIC: test image.
(4) Compilation Conditions
Install the Windows compiler of vc6.0 or later versions.
(5) compilation process
For VC 6.0, first open the DSW file and compile zlib, pnglib, and PNG projects in sequence to obtain the PNG execution file;
If it is vs2005, use vs2005 to open the DSW file first, and perform forced conversion in the middle. Then clean solution, and then rebuild solution;
Other compilers can perform similar operations.
(6) PNG execution file Function
Open a PNG file;
Save the PNG file;
Enlarge the PNG file;
Open the previous PNG file;
Open the next PNG file.
(7)