Help Getting and Setting Bitmap Info From VB


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Help Getting and Setting Bitmap Info From VB

  1. #1
    A_G_Barnett Guest

    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




  2. #2
    Jim Deutch Guest

    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
    >
    >
    >




  3. #3
    Ray Mercer Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center