Arbitrary recording (reading and displaying PNG files)

Source: Internet
Author: User

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

 

 

 

 

 

 

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.