java control's image into local image

M

mark

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?
 
M

mark

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


Paul E Collins said:
mark said:
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.CopyFromScreen.

Eq.
 
M

mark

WORKS!

Bitmap b = new Bitmap(webBrowser1.ClientSize.Width,
webBrowser1.ClientSize.Height);
Graphics g = Graphics.FromImage(b);
g.CopyFromScreen(this.PointToScreen(webBrowser1.Location), new
Point(0, 0), webBrowser1.ClientSize);
g.Dispose();
pictureBox1.Image = b;

--
mark b


Paul E Collins said:
mark said:
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.CopyFromScreen.

Eq.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top