Question about Bitmap Display (Win32Lib)
- Posted by Rod Jackson <rodjackson_x at hotmail.com> Jun 12, 2001
- 350 views
Hi all, Just a quick question. I'm using Win32Lib to load and display bitmaps directly to the screen. Basically, I'm writing a screen saver. The problem is, the bitmaps aren't displaying properly. They seem to be trying to use some common palette, and appear to have some of the colors "merged", looking very low-quality. Here's what I do... 1) Load the bitmap using read_bitmap (for a few reasons...) 2) Convert the bitmap to a Win32-compatible form using Win32Lib's routines (I forget which one exactly) 3) Throw a black bitmap, stored in a pixmap, up to cover the screen 4) drawBitmap() to the Screen control 5) Destroy the bitmap object 6) Loop back to (1) with the next filename to load So far, it works somewhat (long run times lead to inexplicable crashes, I found some suggested adjustments to the Windows registry that I'm going to try.) It's just this one little thing that really keeps it looking so amateurish (it is, but still....) Any suggestions? Rod Jackson