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

Color Palettes

In an attempt to minimise the executable file size, I am using a series of 16 colour bitmaps - each with different palettes.  The problem is that when these bitmaps are copied onto the form canvas in 256 color mode the displayed colors are incorrect.  I've tried all the usual SelectPalette suggestions to no avail.  Can anyone solve this one ?
0
ajameson
Asked:
ajameson
1 Solution
 
mirek071497Commented:
Yes. You must have some mistake in you'r code. Tell me how you need to use you'r bitmaps. in 256 colors you must use palettes correctly but if you have more colors (system settings of course) you can don't use palletes to get good result;
0
 
ajamesonAuthor Commented:
Simply, I've got three bitmap resources, one has shades of yellow, another red and another blue.  I use CanvasCopy to copy these images onto the form canvas.  In 256 color mode, the displayed colors are incorrect.
0
 
ZonnaldCommented:
ajameson,

could you supply some of your code?

That would be a big help.

Thanks
Zonnald
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 
WilliamsCommented:
If you are using Delphi 3.0, it's possible to set the
colormode within the specific Bitmap.
0
 
ajamesonAuthor Commented:
Could you elucidate a bit further as to what colormode is and how to set it - please
0
 
mirek071497Commented:
When you need to display all your bitmap at the same time (the same form) then in 256 color mode display you can't. You trying use more than 256 colors.
However we must know some source !
I think so you create Handles to Palettes but you can have mistake, and when you selecting this palettes you can have mistake too !
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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