Solved

Color Palettes

Posted on 1997-10-01
6
338 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PDF library for Delphi 2 120
Delphi XE2 application frozen on Windows 10 10 309
QRReport  TQrmemo vertical stretching 1 45
Delphi: sending SMS on android platform 1 18
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

808 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