Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Frame Callback to Array
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
BeeJ  
View profile  
 More options Nov 7 2012, 2:41 pm
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. [***]
>>          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).

It is a callback from the WebCam.  I would have thought that the
      StretchDIBits
call would help identify the data format.

It places a WebCam frame into a picturebox that is viewed and looks
exactly as expected.  Axtually I take that BMP representation in PicBox
and convert it to JPEG.  That too works correctly.

 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"
> standard VB arrays at an existing block of data in memory, various examples
> of which you'll find in the archives for this group and others (but before
> you do either of those things check that you are not dealing with a
> compressed bitmap).

> Should be good homework for you ;-)

More like a thesis preparation.
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.