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
Solved

Palette & AVI's ??

Posted on 1997-03-17
4
336 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
  • 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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

Title # Comments Views Activity
Delphi cmd execution 6 67
add combobox item based on numbers 9 154
Delphi XE10 Round Image 2 154
enhance the following code 3 37
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 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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

856 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