home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mswindo / programm / misc / 1597 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.6 KB  |  39 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!cs.ucf.edu!ocoee!koivu
  3. From: koivu@ocoee.cs.ucf.edu (Bruce Koivu)
  4. Subject: Reading in PAN FIles--Upside down--Why? What purpose?
  5. Message-ID: <koivu.715124832@ocoee>
  6. Summary: Would like a simple example
  7. Keywords: DIB
  8. Sender: news@cs.ucf.edu (News system)
  9. Organization: University of Central Florida
  10. Distribution: comp
  11. Date: Sat, 29 Aug 1992 21:47:12 GMT
  12. Lines: 25
  13.  
  14. I have been trying to write a program that will read
  15. and scroll a PAN file in under SetDIBits() and BitBlt()
  16. and am having a rather rough time.  PAN files are simple
  17. 8-bit color images very similiar to the 8 bit DIB format.
  18.  
  19. I have been able to display the PAN files, but they
  20. are upside down and backwards.  The documentation mentions
  21. that the origin for a DIB is the bottom-left corner
  22. of the DIB, yet this doesn't help very much.
  23. Do I really have to read a PAN file into a globally
  24. allocated DIB in backwards to Blit it right-side up?
  25. Could some write a simple example for reading a
  26. simple file into a bitmap right-side up.  Everything
  27. that I have written to date displays all my pan
  28. files upside down.  
  29.  
  30. This is my 2nd weeks of windows programming, there
  31. are many "Application Error" and "System Error"
  32. messages which are not referenced in the documentation,
  33. where does one find info about these error messages.
  34. Also, the CVW debugger seems to be a bit "buggy"
  35. itself, What is the best way to learn how to
  36. debug a Windows program? Any help would be appreciated.
  37. Thanks in advance.
  38. Bruce    koivu@eola.ucf.edu
  39.