java control's image into local image

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?bWFyaw==?=

    java control's image into local image

    I asked this question in another newsgroup but I didn't get a complete answer.

    I have a web page served by an IP Camera. The web page has a java control
    that shows the image. I want to work with that image locally (do some
    recognition stuff).

    I know a representation of that image is on my computer because it shows up
    in a web browser control and it persists after disconnecting the network.

    I admit it is pretty unconventional and probably impossible but, is there a
    way to access that representation and populate a bitmap with it?


    --
    mark b

  • Paul E Collins

    #2
    Re: java control's image into local image

    "mark" <mark@discussio ns.microsoft.co mwrote:
    I have a web page served by an IP Camera. The web page has a java
    control that shows the image. I want to work with that image locally
    (do some recognition stuff). [...]
    I admit it is pretty unconventional and probably impossible but, is
    there a way to access that representation and populate a bitmap with
    it?
    You'll probably have a heck of a time trying to interact with the Java
    applet, so a better idea might be to capture that part of the screen
    using Graphics.CopyFr omScreen.

    Eq.


    Comment

    • =?Utf-8?B?bWFyaw==?=

      #3
      Re: java control's image into local image

      Sounds like good advice. I'm betting there a way to programacticall y identify
      the coordinates of the image if I have it displayed in a webbrowser control.
      --
      mark b


      "Paul E Collins" wrote:
      "mark" <mark@discussio ns.microsoft.co mwrote:
      >
      I have a web page served by an IP Camera. The web page has a java
      control that shows the image. I want to work with that image locally
      (do some recognition stuff). [...]
      I admit it is pretty unconventional and probably impossible but, is
      there a way to access that representation and populate a bitmap with
      it?
      >
      You'll probably have a heck of a time trying to interact with the Java
      applet, so a better idea might be to capture that part of the screen
      using Graphics.CopyFr omScreen.
      >
      Eq.
      >
      >
      >

      Comment

      • =?Utf-8?B?bWFyaw==?=

        #4
        Re: java control's image into local image

        WORKS!

        Bitmap b = new Bitmap(webBrows er1.ClientSize. Width,
        webBrowser1.Cli entSize.Height) ;
        Graphics g = Graphics.FromIm age(b);
        g.CopyFromScree n(this.PointToS creen(webBrowse r1.Location), new
        Point(0, 0), webBrowser1.Cli entSize);
        g.Dispose();
        pictureBox1.Ima ge = b;

        --
        mark b


        "Paul E Collins" wrote:
        "mark" <mark@discussio ns.microsoft.co mwrote:
        >
        I have a web page served by an IP Camera. The web page has a java
        control that shows the image. I want to work with that image locally
        (do some recognition stuff). [...]
        I admit it is pretty unconventional and probably impossible but, is
        there a way to access that representation and populate a bitmap with
        it?
        >
        You'll probably have a heck of a time trying to interact with the Java
        applet, so a better idea might be to capture that part of the screen
        using Graphics.CopyFr omScreen.
        >
        Eq.
        >
        >
        >

        Comment

        Working...