Tuesday, January 03, 2012

Stretch/Shrink Video Size To The Panel Size in MediaPlayer Delphi Programming


Sometime, I need to stretch or shrink a video size to panel size in my program. But how? It turned out very easily and simple. That's why i like delphi/pascal. Just setting the DisplayRect property. This code will shrink or stretch a video to the size of the display panel:

MediaPlayer.DisplayRect := VideoPanel.ClientRect;

1 Comments:

Murat said...

I tried it but it is not fully streched as full screen size . Especialy "height" is not form / panel height . What do you think ?