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