Board index » delphi » Team B pls. help with MediaPlayer

Team B pls. help with MediaPlayer

Quote
Manu Sood wrote in message <39483b1e@dnews>...
>Hi,

>Appreciate any help on the following:
>I am not attracting any replies to this, so reposted:

>I am using TMediaPlayer in Delphi3 to display a video clip within a TPanel.
>I want to copy the currently displayed frame/ graphic to a TImage. As
TPanel
>does not have a Canvas property, I dont know how to do this. Surely, if a
>graphic is being rendered on the panel, there must be a surface where its
>being rendered... Please help.

>Manu Sood

Ok, it seems that TeamB is sleeping right now, so I am going to take a shot
(or a "crack"?) at this.

How to get Canvas of TPanel.
You can use the famous "Crack"-component technique.

There is a form with Button1 (TButton) and Panel1 (TPanel) on it.

type
    TCrackPanel = class(TPanel)
    end;

procedure TForm1.Button1Click(Sender: TObject);
begin
    with TCrackPanel(Panel1).Canvas do
    begin
        Pen.Style := psSolid;
        Pen.Color := clNavy;
        MoveTo(0, 0);
        LineTo(Panel1.Width, Panel1.Height);
    end;
end;

Igor

 

Re:Team B pls. help with MediaPlayer


Manu --

I gave you an answer for this earlier. Use this component to display
the video

TCanvasPanel = class(TPanel)
public
  property Canvas;
end;

Then you can use the canvas to copy to the TImage.

Nick Hodges -- TeamB
Xapware Technologies
Search the Newsgroups -- http://www.xapxone.com./html/xaptips_search.htm

Re:Team B pls. help with MediaPlayer


Hi,

Appreciate any help on the following:
I am not attracting any replies to this, so reposted:

I am using TMediaPlayer in Delphi3 to display a video clip within a TPanel.
I want to copy the currently displayed frame/ graphic to a TImage. As TPanel
does not have a Canvas property, I dont know how to do this. Surely, if a
graphic is being rendered on the panel, there must be a surface where its
being rendered... Please help.

Manu Sood

Other Threads