Solved

color map in DELPHI 1

Posted on 1997-05-24
2
652 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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