Solved

Color Palettes

Posted on 1997-10-01
6
335 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
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now