Download Latest Version pnglib.c.zip (4.9 MB)
Email in envelope

Get an email when there's a new version of pnglib

Home / pnglib.c / sample.vc6
Name Modified Size InfoDownloads / Week
Parent folder
readme.txt 2019-05-09 1.5 kB
set_path.bat 2019-05-08 102 Bytes
PNGLIB.C 2019-05-08 657 Bytes
mak3rls.bat 2019-05-08 225 Bytes
make.bat 2019-05-08 1.9 kB
mak2rls.bat 2019-05-08 191 Bytes
mak3dbg.bat 2019-05-08 269 Bytes
ld_file.exe 2019-05-08 12.8 kB
mak2dbg.bat 2019-05-08 241 Bytes
dll_rls.bat 2019-05-08 393 Bytes
LD_FILE.C 2019-05-08 10.3 kB
APNG.C 2019-05-08 1.9 kB
dll_dbg.bat 2019-05-08 433 Bytes
Totals: 13 Items   30.9 kB 0
1)usage:
  ld_file.exe <file.png>
  example 1:  ld_file.exe ..\pnglib.png
  example 2:  ld_file.exe ..\01.png

2)how to build ld_file.exe:
2.1)modify the path of visual c.
  In my computer, it is in E:\PROGRAM\vc6.0
so i write this path in set_path.bat
But it is maybe not your vc path.
You can modify them in batch files.


2.2)make ld_file.exe:
NOTE:before run lots of batch file as below, we must run set_path.bat 1st.

  make.bat will make ld_file.exe, after compile over 20 files
which are in [source] folder. That's original designed by Thomas.  

  mak2dbg.bat(debug version) or mak2rls.bat(release version)
will make ld_file.exe, after compile ld_file.c and pnglib.c.
Because the later(pnglib.c) #include over 20 files which are in [source] folder.
That's quick and dirty technique by Leisure bamboo.
The debug version can be debug by command line, such as "msdev.exe ld_file.exe ..\01.png".
But size(of debug version exe) will big than release version.

  mak3dbg.bat(debug version) or mak3rls.bat(release version) compile ld_file.c and pnglib.c,
like mak2xxx.bat, to make ld_file.exe.
But it define "_I_SIZE=256" to save memory of reading file.

  dll_dbg.bat(debug version) or dll_rls.bat(release version) will
make ld_file.exe by ld_file.c, and make png.dll by pnglib.c.
After wrap all png function in the dll, so all variable(which in ld_file.c)
will NOT worry about their names conflict with
over 20 files(which are in [source] folder).
Source: readme.txt, updated 2019-05-09