-
Help Getting and Setting Bitmap Info From VB
How do I retrieve a bitmap info structure from VFW via VB ?
I've created types for BITMAPINFOHEADER, RGBQUAD and BITMAPINFO - but still
get type errors?
Any help (Ray!) would be deeply appreciated!
Gary
-
Re: Help Getting and Setting Bitmap Info From VB
You have to get the BITMAPINFOHEADER first, to find out which flavor of
BITMAPINFO you then need to get, depending on the color depth (biBitCount).
Jim Deutch
"A_G_Barnett" <a_g_barnett@hotmail.com> wrote in message
news:3a8572fe@news.devx.com...
> How do I retrieve a bitmap info structure from VFW via VB ?
>
> I've created types for BITMAPINFOHEADER, RGBQUAD and BITMAPINFO - but
still
> get type errors?
>
> Any help (Ray!) would be deeply appreciated!
>
> Gary
>
>
>
-
Re: Help Getting and Setting Bitmap Info From VB
"Jim Deutch" <103134.3516@compuserve.com> wrote in message
news:3a88159f@news.devx.com...
> You have to get the BITMAPINFOHEADER first, to find out which flavor of
> BITMAPINFO you then need to get, depending on the color depth (biBitCount).
> > How do I retrieve a bitmap info structure from VFW via VB ?
Jim is right. You have to first figure out what format the hardware is going to
give you. Use capGetVideoFormat for that. Then you need to create a UDT that
can contain that format. I have personally only ever used RGB and MJPEG formats
from VB since it is so much hassle setting up the UDTs.
To keep it simple at first, I recommend setting your hardware to capture RGB
uncompressed 24bit frames. Then you won't have to worry about a palette or
compression codecs.
HTH,
Ray
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks