Ciao. Ti traduco il codice a pezzi.
PS. La traduzione l'ho fatta direttamente qui senza usare VisualStudio quindi può darsi che ci siano degli errori di sintassi...
>private void button1_Click(object sender, System.EventArgs e)
>{
>this.capture.FrameEvent2 += new Capture.HeFrame(this.CaptureDone);
> this.capture.GrapImg();
>}
>
>private void CaptureDone(System.Drawing.Bitmap e)
>{
> this.pictureBox1.Image=e;
> // Show only the selected frame ...
>// If you want to capture all frames, then remove the next line
>this.capture.FrameEvent2 -= new Capture.HeFrame(this.CaptureDone);
>}
private sub CaptureDone(byval e as System.Drawing.Bitmap)
me.pictureBox1.Image=e
''Show only the selected frame ...
''If you want to capture all frames, then remove the next line
removehandler capture.FrameEvent2, addressof this.CaptureDone
end sub
>private void button2_Click(object sender, System.EventArgs e)
>{
> if( (this.pictureBox1 != null)&&
> (this.pictureBox1.Image != null)&&
> (this.imageFileName.Text.Length > 0) )
> {
> this.pictureBox1.Image.Save(this.imageFileName.Text,
> System.Drawing.Imaging.ImageFormat.Bmp);
> }
>}
ciao ciao
Cristian Barca