Prevent transparency of controls on transparent forms

  • Thread starter Thread starter gourmete
  • Start date Start date
G

gourmete

Hi!

I have a custom shaped form, e.g. the transparency key of the form is
set.
On it I have a control that plays video clips. The problem is, that
windows tries to analyze every single frame of the video clip for the
transparent color key. That does not only slow the playback down, it is
also unwanted, because I dont´t want transparent regions in the video,
of course.
Is there a way to tell windows that even though the form is
transparent, the video playback control is not?

Thank you very much!
 
gourmete said:
I have a custom shaped form, e.g. the transparency key of the form is
set.
On it I have a control that plays video clips. The problem is, that
windows tries to analyze every single frame of the video clip for the
transparent color key. That does not only slow the playback down, it is
also unwanted, because I dont´t want transparent regions in the video,
of course.
Is there a way to tell windows that even though the form is
transparent, the video playback control is not?

I think your best bet is to drop the TransparencyKey and create your
shaped form using a Region and GraphicsPath. Then assign the region to
the Form's region property.

Chris
 
Back
Top