Solved

color map in DELPHI 1

Posted on 1997-05-24
2
658 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
[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
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

738 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