Solved

Color Palettes

Posted on 1997-10-01
6
341 Views
Last Modified: 2010-04-04
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
Comment
Question by:ajameson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 3

Expert Comment

by:mirek071497
ID: 1346694
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
 

Author Comment

by:ajameson
ID: 1346695
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
 
LVL 1

Expert Comment

by:Zonnald
ID: 1346696
ajameson,

could you supply some of your code?

That would be a big help.

Thanks
Zonnald
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Accepted Solution

by:
Williams earned 50 total points
ID: 1346697
If you are using Delphi 3.0, it's possible to set the
colormode within the specific Bitmap.
0
 

Author Comment

by:ajameson
ID: 1346698
Could you elucidate a bit further as to what colormode is and how to set it - please
0
 
LVL 3

Expert Comment

by:mirek071497
ID: 1346699
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question