Solved

Palette & AVI's ??

Posted on 1997-03-17
4
338 Views
Last Modified: 2011-09-20
When I try to play a AVI using a TMediaPlayer component the previous graphics in the form is ruined when running in a 256 color screen. What can be done??
0
Comment
Question by:aborum
[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
  • 4
4 Comments
 
LVL 3

Accepted Solution

by:
mheacock earned 100 total points
ID: 1334902
Not much you can do.  The entire windows system, in 256 color
mode, only has 256 colours available to it.  The AVI will need its own palette, so will start overwriting parts of it, thus ruining your programs colouring.

The best thing to do is to limit you forms to the system colours.  The 16 colours that never change (you can change them, but very few programs do, unless they are running full screen).  If you limit your self to those colours, then everything will be alright.  If you don't, then you are at the mercy of your AVI.
0
 
LVL 3

Expert Comment

by:mheacock
ID: 1334903
I just thought of something else...I've done some palette
work, but it was last year...I can't supply you with any
code...but I still remember the fundamentals.

I do know that you can lock palette values.  If you have
certain colours on your screen, search for them in the
palette and lock them.  That way when the AVI runs, it will
not overwrite them...the AVI quality might be slightly
downgraded (probably won't be visible if you limit the
entries you lock to less than 20 or 30) due to its having
to use a reduced palette.

If you don't own a good API book, I suggest the Win32 API
Bible by Waite Press (Volume I) or the Windows API Bible
by Waite Press (if you are using 16-bit Windows...though
this book is probably out of print now).  Read the Palette
section a few times...it can be tricky working with palettes,
but everything I've mentioned is in there and Delphi is a
pretty good tool for managing them.
0
 
LVL 3

Expert Comment

by:mheacock
ID: 1334904
Did any of this help you out?
0
 
LVL 3

Expert Comment

by:mheacock
ID: 1334905
Did you want to grade this or reject it?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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…
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

717 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