Search found 4 matches

by Zeke99
Saturday 16th January 2021 3:05pm
Forum: General
Topic: Draw in a picturebox
Replies: 7
Views: 135

Re: Draw in a picturebox

Your the man Vuott. Works like a charm!
by Zeke99
Thursday 14th January 2021 6:36pm
Forum: General
Topic: Draw in a picturebox
Replies: 7
Views: 135

Re: Draw in a picturebox

Here comes a sample code: Private myPlayer As New MediaPlayer As "Player" '============================================================================= Public Sub Form_Open() '--- Opens a mediaplayer window with live video stream --- myPlayer.URL = "v4l2:///dev/video0" myPlayer.Play() ' --- Make th...
by Zeke99
Wednesday 13th January 2021 8:18pm
Forum: General
Topic: Draw in a picturebox
Replies: 7
Views: 135

Re: Draw in a picturebox

Thank's a lot vuott. It worked to use paint directly on theImage. Dim theImage As Image = myPlayer.Video.Image theImage.Save(Application.Path &/ Format(Now, "yyyymmdd_hhnnss") & ".jpg" ThePictureBox.Image = theImage Paint.Begin(theImage) Paint.LineWidth = 1 Paint.Rectangle(10, 10, 100, 100) Paint.St...
by Zeke99
Tuesday 12th January 2021 8:06pm
Forum: General
Topic: Draw in a picturebox
Replies: 7
Views: 135

Draw in a picturebox

I have a videofeed from a usb-microscope in a picturebox using mediaplayer. Works great (code copied from Cedron) Private myPlayer As New MediaPlayer As "Player" '============================================================================= Public Sub Form_Open() myPlayer.URL = "v4l2:///dev/video0" ...