Solved

Palette & AVI's ??

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to use Hashing sha1 in Delphi 2010 4 260
Intraweb download file link ? 1 132
Delphi IDE crash without error message ... 7 89
how to update exe applicatio from internet ? 6 76
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

786 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