Solved

color map in DELPHI 1

Posted on 1997-05-24
2
644 Views
Last Modified: 2010-04-04
I am using DELPHI 1 for display bitmap images (from jpeg files)

Showing the pictures in the delphi program is fine.
The problem arise when i am switching to some other application.
The application is using a diffrent color map, and it makes
my picture disturded - but it is o.k. too, as long the focus is on the other application.

When i am switching back to my delphi application - it
doesn't get its color map back again !!!

any idea ?
0
Comment
Question by:gur
2 Comments
 
LVL 2

Expert Comment

by:gysbert1
ID: 1336568
If you call realizepalette the windows system palette will be adjusted to be optimal for your application.
0
 
LVL 3

Accepted Solution

by:
mheacock earned 70 total points
ID: 1336569
You should find that as soon as you resize your application, that
your colours will return to normal.

So, what you'll need to so is force a repaint of the component
that the bitmap resides on...just Invalidate it.  This should
work...if not post a comment and I'll  experiment some more.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
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

15 Experts available now in Live!

Get 1:1 Help Now