C# - Superimpose Text A Still Image Or Windows.drawing Graphics Over A Video Stream?

Jul 10, 2010

I am using a third-party .NET video capture function library that displays atreaming video from a USB video capture device in a VideoPictureBox (which is very much like the usual .NET PictureBox). I want to display graphics and text over the video stream.

[Code]...

View 2 Replies


ADVERTISEMENT

Convert An Object Form System.Drawing.Graphics To System.Drawing.Image?

May 23, 2009

Is it possible to convert an object form System.Drawing.Graphics to System.Drawing.Image?

View 4 Replies

Drawing Graphics - How To Clear Image In PictureBox

Nov 23, 2011

I have 1 image in picturebox. Now I draw some rectangles. I'm trying clear the image (only rectangles and left the image) without success.

Private Sub btnImageSelection_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnImageSelection.Click
Dim intImages As Integer = 0
Dim intImagesLine As Integer = 0
Dim intImagesColune As Integer = 0
picImage.Image = PictureBox1.Image
[Code] .....

The cycles for is for show the rectangules and works fine. but
i.Clear(Color.Blue)
The image is clear but the rectangles are showed and then unshowed.

View 19 Replies

Convert System.Drawing.Graphics To System.Drawing.Image

Jan 20, 2010

I have a System.Drawing.Graphics g, which draw something in a PictureBox. Now I want to export this pGraphics to a new System.DrawingImage pImage (or Bitmap). But how?

Dim pImage As Bitmap
Dim g As Graphics
g = Graphics.FromImage(b)

[Code].....

View 9 Replies

Convert System.Drawing.Graphics To System.Drawing.Image?

Mar 10, 2010

I have two graphics I'm trying to superimpose into one, then display in a DataGridViewImage cell...The Value property of a DataGridViewImage is an Image type.

Dim Image1 As System.Drawing.Image = imgl_Imagelist1.Images(0)
Dim Image2 As New Bitmap(imgl_ImageList2.Images(0))
Dim DualGraphic As Graphics = Graphics.FromImage(Image1)

[code].....

View 3 Replies

Windows - Drawing Digits/graphics Directly To The Screen?

Oct 17, 2011

I'm putting together a small program in Visual Basic Express 2010, and part of it is to take a delayed screen shot.

I've got the main code working, I've got Visual Basic delaying taking the screen shot with System.Threading.Thread.CurrentThread.Sleep(5000), but what I'm looking for is a way to draw directly to the screen the number of seconds remaining.

You know how in Windows, in the Display Properties under Settings, when you click on Identify you get a huge number displayed on each monitor?

I'm trying to recreate that, with the number counting down until the screen shot is taken, giving the user plenty of notification to get their required applications in focus for the screen shot.

Is it possible to do this? Or is it something that will take a heck of a lot of coding?

View 1 Replies

Interface And Graphics :: Drawing Text With Custom Font And Color

Jan 8, 2009

I created an application in VS2005 that draws text with a custom font and color. The images look great from my XP machine. But from another machine running Windows Vista, the graphics are messed up. It seems that the transparencies inherit the default black background so there's this gray'ish/black haze around the text...

View 1 Replies

WIA (Windows Image Acquisition) Video Preview

Jan 4, 2006

I recently posted a WIA sample project in the codebank in this forum here : [URL] What I was trying to do is provide a video preview of the webcam video in a window, but I am having problems with trying to pass in the Window Handle. It should be as simple as Adding a reference to "WIAVideo 1.0 Type Library", and then putting in the following

[Code]...

View 7 Replies

Interface And Graphics :: System.Drawing.Graphics.DrawString On Other Window?

Aug 14, 2009

drawing text on a window which is not the current form's window.I remember doing this in Win32 api with getwindowdc(handle) to obtain a DC for the Window, then textout() on the DC.

View 2 Replies

Change Image In Windows Forms App. System.Drawing.Bitmap In A PictureBox

Jul 19, 2010

I have a VB.NET Windows Forms app with a logo image on the form as a System.Drawing.Bitmap inside a PictureBox.I used the Visual Studio Designer to add the logo .bmp image so I don't currently have any VB code doing anything with it.I'd like to make the current logo a clickable object/button so when I click on it a file browser dialog opens and I can select a new image to replace the current image.The current image is a local resource and is set in a PictureBox as a System.Drawing.Bitmap.How would I replace that System.Drawing.Bitmap with a file selected from the file browser dialog?

View 1 Replies

Stream Video Over LAN?

Mar 16, 2011

I want to stream video from a simple webcam over LAN for object detection purpose. Is it a good idea to grab frames and send them continuously over network with NetworkStream.Write()?

I did this but usually on client side i lost half of image data and I got noise, I don't know what is wrong. I'm looking for a fix or a better idea.

I put the client and server source codes here, first run the client and click "START LISTENING" then run server and click "Send pic".

[URL]

View 2 Replies

Video Stream From Ip Camera?

May 30, 2012

I want to write a .NET application to show and save video streams from an ip camera. But I'm not yet sure what would be the best way to get started. Should I look for an Axis camera so I'd be able to use their api or will I be fine accessing the video stream using directshow or whatnot using any other camera ?

View 2 Replies

VS 2010 Stream Video Over Lan?

May 22, 2011

I'm trying to find source code for vb.net(2010). i want to stream video file (picture and sound) from my computer(server) over lan to another computer(client). on the server side i open the video into "Windows media player controller". how i stream the picture and sound over lan network?

View 1 Replies

Play Video From Memory Stream?

May 5, 2010

I have an application that sends Bytes of data through UDP, these bytes are read from an AVI file when the client receives the bytes it builds the AVI file on another computer perfectly but I want to be able to use the received bytes to play the video from the stream. Does anyone know how I can play the video from a stream? I tried using DirectShow but I don't know how to use a stream as video let alone having AVI files play with DirectShow.

My main goal is to have the application slowly "buffer" the movie for the client as they watch.

View 5 Replies

Stream Video From Network PC Via Webcam?

Jan 18, 2006

I have a little Logitech USB Webcam that I have attached to a laptop and I want to be able to view a video stream from it. I already gathered it will need to be a client/server model...and I probably need to use TCP/IP and/or Winsock (if its still even used)...

how to really approach this application as far as the video capture process? I don't have a need to really record video in any way so if i can just "preview" the video thats fine, although recording would be a neat bonus.

I read into the Windows Image Aquisition libraries and they seemed to be the right thing...but I wasn't so sure about the cross-network half of the equation.

View 10 Replies

VS 2008 Stream Video From Webcam?

Apr 4, 2009

I am interested in streaming video from a webcam on one PC to another PC. Could this be done without streaming to a server. Could this be achieved by streaming using P2P?

View 4 Replies

VS 2008 Graphics.drawstring - Put The Text On Top Of The Image

Sep 6, 2009

So, what I've got is a picturebox and a textbox, I got some code to put text into a picturebox so I could better understand how it works, but what I don't understand is how to put the text on top of the image that is in the picturebox, can anyone tell me how to do that? Here's the code

[Code]...

View 3 Replies

Capture Video+stream Online With Webcam ?

Mar 14, 2009

I'm currently working on a project which is basically Server-Client based.Client is standalone VB executable file and Server is web based.The program is supposed to use webcam as video capture device, stream video footages to server (on website - live feed) and allows users to manually save captured videos into their computer.Thats basically the brief description of my system. I'm starting off working with VB right now and website after I'm done with VB.

I'm new to VB, this would be my 1st project on it. I need help and guidance on how to start please, especially on video capturing functions.I've looked for available sources online and found several VB apps which lets me capture image file through my webcam. Also on MSDN forum, i found recommendations on using "DCAM Server" to stream videos on website but I'm still not sure of how to configure the settings to make it work properly, and of course, don't have a proper website for it to work with yet atm.Also realise I'll need to integrate some .dll files or activeX functions to use video capture function. I don't really know how to use these yet rite now.

View 3 Replies

.net - Create A Video Stream (AVI) From A Series Of Images?

Dec 8, 2009

There is an IP web camera that I wrote a .NET class for sometime ago. It's basically a Timer implementation that pings a snapshot CGI script from the camera every five seconds. The camera itself is very rudamentary; it does not have any sort of API for me to work with, the only thing I can do programmatically (remotely) is invoke this script. The script returns a 640x480 JPEG image. Simple.

Now what I need to be able to do is take a days worth of these images, and create a "time lapse" AVI video stream out of it that will eventually be embedded into a web page. How can I do this with VB.NET?

View 4 Replies

Create A RTSP Video Stream On A .NET Platform

Jan 14, 2011

I want to create a RTSP/h264 video stream from static images, and incorporate it into my .NET application. So far I have found two possible ways to do this:

Use ffmpeg/ffserver, but I would need to compile ffserver on windows and then rely on it... and I don't necessarily want to rely on an external application
Use the LIVE555 [URL] library, but they do not have any .NET libraries, so I would need to spend some effort to make it work with the rest of my .NET application.

Can you comment on either #1, #2, or which is better. Is there a faster way to bring up a RTSP server in .NET? I do not mind putting in development time if there is a solid solution that takes time, but it would be good to have something we can work with fast, for prototyping and demos.

View 3 Replies

Distinguish Between Text And Graphics Inside A Scanned Image?

May 9, 2011

how would you identify the shape of text like inside a scanned document containing text and graphics?In a perfect world,users would never enter data in the wrong form,files they choose to open would always exist and code would never have bugs.[URL]

View 5 Replies

Play Video Files (atleast Wmv, Avi) From A Byte Stream?

Mar 1, 2009

I am trying to play video files (atleast wmv, avi) from a byte stream in vb.net.Is it possible to direct this data at a wmp control?I have done this successfully with images & picture boxes, just need help with the video.

View 1 Replies

Process The Response Stream From A Webpage That Displays A Video?

Nov 28, 2011

[Code]...

Above is the response of the page I am trying to get if I enter the URL: However, the program just crashes with the following code (i.e. never even displays final - meaning stream is still going on) I think that it is streaming the video, in addition to the source- which I do not want to happen How can I retrieve this source?

[Code]...

View 1 Replies

Stream Audio And Video In The Local Area Network?

Oct 26, 2009

I am developing an application where in I need to stream audio and video in the local area network. There is calling option from my application where users can call each other(audio call or video call) in the LAN.

View 3 Replies

Error: Operator '=' Is Not Defined For Types 'System.Drawing.Image' And 'System.Drawing.Bitmap'

Aug 17, 2009

With this line...

If PictureBox1.Image = My.Resources._2star Then

I get this error: Operator '=' is not defined for types 'System.Drawing.Image' and 'System.Drawing.Bitmap'.Is there another way to say = with images?

View 8 Replies

Error Value Of Type System.Drawing.Image Cannot Be Converted To System.Drawing.Icon

Jan 21, 2010

Here is my favicon code

Dim oURL As Uri = New Uri(e.Uri.AbsoluteUri)
Dim favicon As Image
If oURL.HostNameType = UriHostNameType.Dns Then

[code]....

The error is Value of type System.Drawing.Image cannot be converted to System.Drawing.Icon Is it even possible to make the favicon be the icon of the form?

View 4 Replies

Drawing Spirals Using Graphics Object?

Feb 20, 2009

I have been trying to draw spirals in vb.net. Here's a link to the formula [URL]. here's what I was trying to do. The code below is just drawing points which I was later going to edit to connect from point to point as soon as i got the spiral function working.
Function Draw()
Dim iImageCenterPointH As Integer = pbOut.Height / 2
Dim iImageCenterPointW As Integer = pbOut.Width / 2
Dim iCircleSpace As Integer = 10
[Code] .....
I am not 100% the output is matching the formula here's what I am getting atm ...

View 7 Replies

Graphics Drawing And Moving Controls?

Oct 21, 2010

I know this is probably not going to be simple, I tried searching around, but couldn't find anything. I am using some code to 'draw' text in a custom format to a panel with a custom bitmapped region (custom shape).Here is the code that writes the text inside a specified area:

g = LeftControlPanelV2.Panel1.CreateGraphics
Using fnt As New Font(New FontFamily("Arial"), 9, FontStyle.Regular, GraphicsUnit.Point)
Dim sf As StringFormat = StringFormat.GenericDefault
sf.Trimming = StringTrimming.EllipsisWord

[code]....

Obviously the text is not really located on the panel, but looks like it as it's drawn on top of the panel. So, when the panel or form that the panel is attached to moves, I lose the text. I though I could just call back to writing the text when the panel/form arrives at the correct place, while clunky, it works to a degree. I was hoping there was a better way of doing this, so that the text doesn't disappear when moving controls and I don't have to make repeated calls to the same drawing text over and over and over...

Edit: Should probably add that there will be 5 different panels each with their own custom drawn text, and all 5 need to move at the same time...

View 2 Replies

Graphics Drawing Images Events

Aug 3, 2010

I have been researching for a while, and now am converting my project from using forms to do transparencies to just drawing the images. At first, I thought picturebox's could be used, but can't figure out how to do transparencies on those, so I settled for drawing images. Here is what I am using: [Code] Now, I know these are not controls, but is there any possible way to make these drawn images have a click-able event fire?

View 4 Replies

System.Drawing.Graphics From Scratch?

Jul 15, 2010

Rather than create a Form and use Graphics generated via the CreateGraphics Method, how does a System.Drawing.Graphics Object get built?

View 16 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved