README
资源名称:ilib [点击查看]
上传用户:changbiao
上传日期:2007-01-13
资源大小:141k
文件大小:3k
源码类别:

图片显示

开发平台:

C/C++

  1. Ilib-1.1.7
  2. Copyright (C) 2000 Craig Knudsen, cknudsen@radix.net
  3. http://www.radix.net/~cknudsen/Ilib/
  4. Ilib is a library (and some tools and examples) written in C
  5. that can read, create, manipulate and save images.  It is capable
  6. of using X11 BDF fonts for drawing text.  That means you get
  7. lots (208, to be exact) of fonts to use.  You can even create your
  8. own if you know how to create an X11 BDF font.  It can read and
  9. write PPM, XPM, GIF, PNG and JPG image format.  I can read (but not
  10. yet write) BMP.
  11. EXTRAS:
  12. --------------------------------------------------------------------------
  13. Download and install EITHER Giflib or Libungif if you want to read or
  14. write GIFs.  Giflib is available at:
  15. http://prtr-13.ucsc.edu/~badger/software/giflib.shtml
  16. Libungif is available at:
  17. http://prtr-13.ucsc.edu/~badger/software/libungif.shtml
  18. Download and install libpng if you want to read or write PNGs:
  19. http://www.cdrom.com/pub/png/pngcode.html
  20. Download and install libjpeg to read and write JPEGs:
  21. ftp://ftp.uu.net/graphics/jpeg/
  22. Download additional X11 BDF fonts:
  23. ftp://ftp.xfree.org/pub/XFree86/current/untarred/xc/fonts/bdf/75dpi/
  24.   or try
  25. ftp://ftp.xfree.org/pub/XFree86/3.3.3.1/untarred/xc/fonts/bdf/75dpi/
  26. Edit/Import/Create BDF fonts with xmbdfed (requires Motif/Lesstif):
  27. (not sure where the primary location for this... use
  28. AltaVista to find it.)
  29. COMPILING (UNIX):
  30. --------------------------------------------------------------------------
  31. In order to make use of GIF, PNG or JPEG, you need to obtain the
  32. add-on libraries mentioned above.  (First, check your system.  If
  33. you have a Linux distribution, it's likely to have some of these
  34. installed.)
  35. Edit the definitions of LIBS, DEFINES, INCLUDES to indicate which
  36. libraries are installed.  Change PREFIX if you don't want to install
  37. in /usr/local.
  38. Also, edit the values of CC and RANLIB if needed.
  39. Then, just type "make makefiles; make all" to build everthing.
  40. Both a shared and static library will be buily in the "lib" directory.
  41. Type "make install" to install everything (defaults to /usr/local).
  42. Look at the programs in "examples" and "clients" as examples how to use
  43. Ilib.  The example program "iconvert" shows a handy tool for converting
  44. images between different formats and "isample" shows how to draw text,
  45. lines, etc.
  46. COMPILING (Win32):
  47. --------------------------------------------------------------------------
  48. You should be able to use the Cygnus Win32 package to build Ilib using the
  49. provided makefiles.  I have not tested this since Ilib v1.0.
  50. Ilib-1.1.0 has also been built on Win95 with MS Visual Developer (Visual
  51. C++).  GIFLIB was also built with MS Visual Developer.  Sorry, I'm not
  52. going to try and provide makefiles or project files for this.
  53. HISTORY:
  54. --------------------------------------------------------------------------
  55. See ChangeLog.