Hi, I'm a VB.Net developer and cannot find a way to create a bipmap from a
pointer...
My application does video rendering using Windows media encoder (that's out
of the content of this message). Using a "DataView" object I can attach a
"video viewer" to about every control in a Form, using a "integer reference"
to attach the viewer object to the control you want to use as a viewer.
Question: is there any way to use the "lpreviewStream" integer to generate
a bitmap using BitBlt, new Bitmap(...) or some other way? (I'm trying to get
screen shots of the video on screen)
Here's part of the code, when I create the viewer and attach it to a
pictureBox:
(thanks for any clue)
-->SrcVid is the Encoder object that gives you the video from
a device
DVColl_Preview = SrcVid.PreviewCollection
'Create WMEncDataView object
Preview = New WMEncDataView
'Add the WMEncDataView objects to the collection.
lpreviewStream = DVColl_Preview.Add(Preview)
'// Start the encoding process.
Encoder.PrepareToEncode(True)
Encoder.Start()
'// Display the preview in a pictureBox named pic1
Preview.SetViewProperties(lpreviewStream, pic1.Handle.ToInt32)
Preview.StartView(lpreviewStream)
Regards,
Victor