• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 142
  • Last Modified:

Screen Color

I’m having a problems with color.
I created a program using VB6, Win 98. My PC is set to true color (32bit). I created graphics for my program and they look great on my PC, but when I installed the program on a PC that also used Win 98 but is set for 256 color, the graphics look bad. How do I program to accommodate the different color settings between PCs without asking the user to change their color setting while using my program?
Thank you.
0
dlwulfe
Asked:
dlwulfe
  • 3
  • 2
1 Solution
 
dlwulfeAuthor Commented:
Adjusted points to 200
0
 
laeuchliCommented:
Palettes are the answer. I never did them in vb, but that is what you need to do. You will need to use the WinAPI functions:CreatePalette,SelectPalette, and  RealizePalette.  Basicly what you do, is you tell windows to keep x amount of colors out of 256, so that windows does not have to dither to get what you want. This is the only thing you can do short of upgrading the hardware.
0
 
dlwulfeAuthor Commented:
Thanks. If you know, please tell me where I can get more information about that specific API function.
0
 
laeuchliCommented:
www.msdn.com will do the trick
0
 
laeuchliCommented:
Oh sorry, wrong link:msdn.microsoft.com
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now