Click here to Skip to main content
15,894,343 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: how to Add Uninstall Option in Start Menu Pin
Adnan Siddiqi3-Apr-05 18:48
Adnan Siddiqi3-Apr-05 18:48 
GeneralRe: how to Add Uninstall Option in Start Menu Pin
rwestgraham4-Apr-05 9:31
rwestgraham4-Apr-05 9:31 
GeneralCall DTS package From vb.net Pin
Sagar Jagadale1-Apr-05 19:57
Sagar Jagadale1-Apr-05 19:57 
GeneralRe: Call DTS package From vb.net Pin
Kodanda Pani3-Apr-05 19:13
Kodanda Pani3-Apr-05 19:13 
GeneralMaximum control size Pin
SolidRock1-Apr-05 11:26
SolidRock1-Apr-05 11:26 
GeneralRe: Maximum control size Pin
MoustafaS17-Apr-05 3:06
MoustafaS17-Apr-05 3:06 
GeneralRe: Maximum control size Pin
Anonymous18-Apr-05 8:53
Anonymous18-Apr-05 8:53 
QuestionHow can I add text/line on the video using C# AudioVideoPlayback? Pin
hyliu20051-Apr-05 8:18
hyliu20051-Apr-05 8:18 
Hi, All:

I play video using AudioVideoPlayback.Video in C#. I need to draw some markups on the video. How can I do this? I tried the following code. But once the function RenderToTexture() is called, I noticed several important properties (AverageTimePerFrame, etc.) in the video object is missing. Even after I work around this, the video shown in the event handler video_TextureReadyToRender() is corrupted and does not advance. I'm using DirectX (Feb 2005 Update). Please help.

Thank you.

<br />
private void LoadVideo()<br />
{<br />
    PictureBox box = new PictureBox();<br />
    Video video = new Video(video_path);<br />
<br />
    PresentParameters present_parameters = new PresentParameters();<br />
    present_parameters.Windowed = true;<br />
    present_parameters.DeviceWindow = box;<br />
    present_parameters.PresentFlag = PresentFlag.Video;<br />
    present_parameters.SwapEffect = SwapEffect.Flip;<br />
<br />
    Device graphics_device = new Device(0, DeviceType.Hardware, box,<br />
        CreateFlags.HardwareVertexProcessing, present_parameters);<br />
<br />
    video.RenderToTexture(graphics_device);<br />
    video.TextureReadyToRender +=<br />
        new TextureRenderEventHandler(video_TextureReadyToRender);<br />
<br />
    video.Play();<br />
}<br />
<br />
private void video_TextureReadyToRender(object sender, <br />
TextureRenderEventArgs e)<br />
{<br />
    e.Texture.Device.BeginScene();<br />
    // Draw text/lines<br />
    ....<br />
    e.Texture.Device.EndScene();<br />
    e.Texture.Device.Present();<br />
}<br />


Recnelis
AnswerTry DirectShow instead. Pin
ursus zeta2-Apr-05 7:50
ursus zeta2-Apr-05 7:50 
GeneralCreating Flat Files using vb.net Pin
Sagar Jagadale1-Apr-05 0:05
Sagar Jagadale1-Apr-05 0:05 
GeneralRe: Creating Flat Files using vb.net Pin
Colin Angus Mackay1-Apr-05 7:49
Colin Angus Mackay1-Apr-05 7:49 
GeneralRe: Creating Flat Files using vb.net Pin
Sagar Jagadale1-Apr-05 19:33
Sagar Jagadale1-Apr-05 19:33 
GeneralMCP certification help Pin
satishrg31-Mar-05 9:41
satishrg31-Mar-05 9:41 
GeneralRe: MCP certification help Pin
Kodanda Pani31-Mar-05 18:37
Kodanda Pani31-Mar-05 18:37 
GeneralRe: MCP certification help Pin
satishrg5-Apr-05 15:18
satishrg5-Apr-05 15:18 
GeneralRe: MCP certification help Pin
Kodanda Pani5-Apr-05 17:45
Kodanda Pani5-Apr-05 17:45 
GeneralRe: MCP certification help Pin
Claudio Grazioli3-Apr-05 21:04
Claudio Grazioli3-Apr-05 21:04 
QuestionEncryption - how do I store a password/key in my App? Pin
Lakitu31-Mar-05 2:59
Lakitu31-Mar-05 2:59 
AnswerRe: Encryption - how do I store a password/key in my App? Pin
S. Senthil Kumar31-Mar-05 3:10
S. Senthil Kumar31-Mar-05 3:10 
GeneralRe: Encryption - how do I store a password/key in my App? Pin
Lakitu31-Mar-05 3:23
Lakitu31-Mar-05 3:23 
GeneralRe: Encryption - how do I store a password/key in my App? Pin
Steven Campbell1-Apr-05 7:46
Steven Campbell1-Apr-05 7:46 
AnswerRe: Encryption - how do I store a password/key in my App? Pin
afinnell7-Apr-05 10:09
afinnell7-Apr-05 10:09 
GeneralMemmory mapping in .NET Pin
Themis31-Mar-05 0:41
Themis31-Mar-05 0:41 
GeneralRe: Memmory mapping in .NET Pin
Colin Angus Mackay31-Mar-05 3:21
Colin Angus Mackay31-Mar-05 3:21 
GeneralImage Encoder / Decoder in GDI+ Pin
DidiKunz30-Mar-05 10:34
DidiKunz30-Mar-05 10:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.