Preorder Windows 7 and save 50% or more
 
Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Bookstore...
 
Feedback
Tip Jar
 
XML RSS Feed
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
 
  Ready-to-Run Visual Basic Graphics Programming: High Color  
 
Overview Table of Contents Updates
What Readers Have Done What's New in Edition 2 Wiley
Save 15% Amazon.com Amazon.co.uk
 
 
 

High Color

Most computers these days can display millions of colors. To save memory, however, some are set up to display only 256 at one time. Computers use palettes to keep track of the 256 colors available.

The message "This monitor does not support palettes" probably means one of two things. First, you may have an older computer that can display fewer than 256 colors at one time. In that case many of the more advanced programs that use colors and smooth gray shades will not work on your computer.

Second, and more likely, you have your system set to display "high color." In that case your computer can display a different color for every pixel on the screen at once so it does not need to use palettes. Converting the programs for high color is not hard.

First comment out all of the code that deals with palettes. That includes the test with GetDeviceCaps. It also includes calls to GetPalette, GetSystemPalette, SetPalette, and ResizePalette. In most programs these occur in the same subroutine and you can simply comment out the call to the routine. You should also remove the &H2000000 added to color values.

 

 
  Ready-to-Run Visual Basic Graphics Programming: High Color  
 
Overview Table of Contents Updates
What Readers Have Done What's New in Edition 2 Wiley
Save 15% Amazon.com Amazon.co.uk
 
 
 

Copyright © 1997-2008 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated