Re: Transparent label over live video stream

From: Rodrigo S. Novelli (rsnovelli_at_gmx.net)
Date: 06/19/04

  • Next message: Luhar: "Re: image.getthumbnailimage"
    Date: Sat, 19 Jun 2004 12:49:42 -0300
    
    

    Yes, I can, but as I sad before, if I do this then I will have to set the
    Image property of the PictureBox for each frame I capture. This works,
    because I tried it with a Panel instead of a PictureBox, but I think it's a
    too much expensive task. I'm looking for a better solution.

    Anyway, thanks for your reply.

    Best Regards,

    Rodrigo.

    "Sahil Malik" <nospam@ms.com> wrote in message
    news:uoMcFPhVEHA.1952@TK2MSFTNGP12.phx.gbl...
    > Can you use a picturebox instead? And Picturebox.image = your webcam
    image?
    >
    > If that is acceptable, then you can add the label to the picturebox
    > programatically (won't let you add from designer), and set it's bgcolor to
    > transparent.
    >
    > - Sahil Malik
    > Independent Consultant
    > You can reach me thru my blog at -
    > http://www.dotnetjunkies.com/weblog/sahilmalik/
    >
    >
    >
    > "Rodrigo S. Novelli" <rsnovelli@gmx.net> wrote in message
    > news:uKyOjugVEHA.2988@TK2MSFTNGP10.phx.gbl...
    > >
    > > Hello All,
    > >
    > > I'm working in a software that captures live video from an ordinary
    > webcam.
    > > This software has a form with a panel which is the preview window. In
    this
    > > panel is show a preview of what is being captured from the webcam. I
    wish
    > to
    > > put a label inside this panel, but this label should be transparent, so
    I
    > > can show its text with the video behind it. If I set the BackColor of
    the
    > > label to Transparent it doesn't work because it will render the parent's
    > > color, it is, the panel BackColor, not the video being captured.
    > >
    > > I have tried to set the panel BackgroundImage property to the current
    > frame
    > > being captured and this way it worked, but I didn't like this solutions
    > > because I have to set the BackgroundImage property for each captured
    > frame,
    > > and this decreases the application performance.
    > >
    > > Does anyone has some ideia or tip or knows some component or control
    that
    > > does something like I want?
    > > Any help or tip is welcome,
    > >
    > > PS: I'am using the C# programming language with the 1.1 framework. To
    > > capture video I'm using DirectShow throught COM Interop.
    > >
    > > Best Regards,
    > >
    > > Rodrigo S. Novelli
    > > rsnovelli@gmx.net
    > >
    > >
    >
    >


  • Next message: Luhar: "Re: image.getthumbnailimage"

    Relevant Pages

    • save frame from mediaplayer
      ... I've got mediaplayer to show an avi-file in a panel. ... How can I capture a frame and save it as a file? ...
      (comp.lang.pascal.delphi.misc)
    • Re: Resize panel image and maintain aspect ratio
      ... the panel, ... send the second picturebox to the back. ... Private ptbBreedte, ptbHoogte As Integer ... Private schaalH, schaalB, schaal As Double ...
      (microsoft.public.dotnet.languages.vb)
    • PictureBox with scroll bar control
      ... yes folks that is progress! ... Someone in this ng suggested just drop your picturebox into a panel ... vertically so as to only have 1 scrollbar at a time. ...
      (microsoft.public.dotnet.languages.vb)
    • Scrollbar Question
      ... I have a form containing a panel and a picturebox inside the panel. ... The form load code changes the panel size to 400x400 and the picturebox size ... the bottom part of the vertical scrollbar on the right side of the ...
      (microsoft.public.dotnet.languages.vb)
    • Re: VB6 printing problems on Vista
      ... So you quite clearly specified a Form rather than a PictureBox, which is why I pointed out its limitations in that respect. ... Besides, the limitations of the method at the link you posted regarding the contents of a Form that I mentioned earlier apply equally to the contents of a PictureBox if you use that instead, so it is not really a general or reliable working solution for capturing a PictureBox and its controls either. ... Additionally, the OP might have missed the significance of the word "image" in your statement, especially as the title of the page at the link you posted included the phrase "including most controls" and I merely wanted to point out to the OP some of the problems of using that method to capture a Form and its contained Controls just in case he began to think that it was a general and reliable replacement for his own existing method of capturing a Form, which it is not. ... In that case he already has what he wants (a copy of his drawing in memory which he can draw to the Printer using Printer.PaintPicture specifying the PictureBox's Image property as the source, which is something I had already suggested to him a few days ago) and so there is no point at all in using the code at the link you posted, which in this specific case is entirely redundant. ...
      (microsoft.public.vb.general.discussion)