Link to home
Start Free TrialLog in
Avatar of aborum
aborum

asked on

Palette & AVI's ??

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??
ASKER CERTIFIED SOLUTION
Avatar of mheacock
mheacock

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mheacock
mheacock

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.
Did any of this help you out?
Did you want to grade this or reject it?