Zlib and LibPng configuration and use part1

zhaozj2021-02-08  438

Configuration and use of Zlib and Libpng

Solstice 2003/04/3

Description: This article is selected from the article on the home page. PNG library libpng installation, 5) Use libPng to generate a PNG file, 6) Draw a waveform of the WAVE file, which only intercepts 3, 4, 5 these three parts. The source code involved in this article can be downloaded from my homepage (http://www.chenshuo.com).

The picture in the PNG format is very popular on the network, and almost all browsers support this format. PNG represents Portable Network Graphics - portable web graphic format. Another reason I prefer PNG images is that in the PDF file generated by the Latex, the PNG file can be embedded directly. PNG is similar to GIF, which is a non-destructive compressed raster graphic format. Unlike GIF files, software to write to generate a PNG file does not need to pay any copyright costs. Therefore, the unofficial name of PNG is png's not gif, enough, is it?

Although the format of the PNG file is not complex, I still decided to read it with a ready-made library, don't always reinvent the wheel. Let's first look at how to install the official library of PNG files --Libpng and Zlib. Common Linux systems are equipped with these two libraries, so I only intend to introduce the installation method under Windows.

The following operations are free of charge

Borland C Compiler 5.5.1 Free

Compiler as an example,

Microsoft Visual C

The installation method is roughly similar to this, but I have no condition test.

转载请注明原文地址:https://www.9cbs.com/read-424.html

New Post(0)