home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / Pict2Ascii 1.03 / Pict2Ascii.doc next >
Encoding:
Text File  |  1997-07-11  |  2.3 KB  |  57 lines  |  [TEXT/CWIE]

  1. This code is provided for people interested in reading how a real PowerPlant
  2. application works, while simple enough to be mastered in a few tens of minutes.
  3.  
  4.  
  5. It is free, but not in the public domain : you may use parts of it in your own
  6. programs, but not sell an application with the same purpose based on my source.
  7.  
  8. You may port the code on another platform, but I require you mention the original
  9. Mac application. It would also be nice to tell me…
  10.  
  11. I ask, but do not require, that you mention Pict2Ascii and myself somewhere in your
  12. application if you use significant parts of my source. IMHO, this is simply polite.
  13.  
  14.  
  15. I estimate myself as an "enlightened beginner", and guess that many parts of the code
  16. could be written more elegantly, or more efficiently. If you have ideas to simplify
  17. something in the code, feel free to drop me a note. I don't promise I'll distribute
  18. a new version on the spot, but I'm always glad to learn.
  19.  
  20. In particular, I've had troubles with updates while initializations or computations
  21. are beeing made : as long as I don't return control to the event loop, no update
  22. event can be taken into account, and I have to call for refresh myself. There must
  23. be an elegant way to avoid this (without complicated threads or re-entrance).
  24.  
  25.  
  26. Please don't contact me for support on the AE part : I don't know how it works, and
  27. only took the modifications from Michael Schuerig <uzs90z@ibm.rhrz.uni-bonn.de>.
  28.  
  29.  
  30.  
  31. NB :
  32.     for the french version, use
  33.             Pict2Ascii.fr.ppob
  34.         and    Pict2Ascii.fr.rsrc
  35.     instead of their .us counterparts.
  36.  
  37.  
  38. This version is 1.03, dated 97/07/11
  39.  
  40.  
  41.  
  42. TODOs
  43.  
  44. **    The CDocument ctor is too complex for what it does : default prefs should be
  45.     stored in the app rsrc, instead    of retrieved from the PPob.
  46.     
  47. **    Size Other… not implemented. But the menu can be changed in PPob.
  48.  
  49. **    Try to include isotropy into the computation of the best char. We could allow
  50.     for an error range around lightness, and choose    the char with the best isotropy
  51.     within that range. Results would be much better, especially for big sizes.
  52.  
  53. **  Michael worked too hard : had he made less, I would have had to complete what he
  54.     did, and would have been tempted to implement AppleScript support for the "zoom
  55.     factor" and "characters set" options.
  56.     In fact, it works fine enough without them !
  57.