Solved

Palette & AVI's ??

Posted on 1997-03-17
4
331 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now