Solved

Palette & AVI's ??

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

895 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

15 Experts available now in Live!

Get 1:1 Help Now