Newsgroups: microsoft.public.vb.general.discussion
From: BeeJ <nos...@spamnot.com>
Date: Wed, 07 Nov 2012 11:39:41 -0800
Local: Wed, Nov 7 2012 2:39 pm
Subject: Re: Frame Callback to Array
>> In the callback I receive the pic data as pData. [***]
It is a callback from the WebCam. I would have thought that the
>> StretchDIBits Picbox.hdc, 0, 0, w, h, 0, 0, w, h, ByVal pData, >> m_tBI, DIB_RGB_COLORS, vbSrcCopy >> ' this puts the full image in a picturebox. > You haven't said exactly what you are getting in pData (see the line marked > [***] above). StretchDIBits call would help identify the data format. It places a WebCam frame into a picturebox that is viewed and looks Is the data compressed, or is it straight bitmap data? If it is
> First check out the format of DIBSections:
> http://msdn.microsoft.com/en-us/library/windows/desktop/dd183567(v=vs...
> . . . and and then check out SAFEARRAY structures:
> http://msdn.microsoft.com/en-gb/library/windows/desktop/ms221482(v=vs...
> . . . and then check out how you can use SAFEARRAY structures to "point" > Should be good homework for you ;-)
Thanks. I will see if this makes any sense to me. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||