How to save a graphic from a DIB handle

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MarDude
    New Member
    • Feb 2010
    • 7

    How to save a graphic from a DIB handle

    Hello,

    I'm developing a scanning application in VB.NET 2005 using TWAIN. The scanner returns to me a handle to a DIB. I need to save this to a file, but I've been searching everywhere and can't find any information.

    Can anyone point me in the right direction? Thanks.
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    For all those people who find it more convenient to bother you with their question rather than to Google it for themselves.

    Comment

    • MarDude
      New Member
      • Feb 2010
      • 7

      #3
      That link brings of a list of "How to write text to a file".

      Sorry, but completely useless to me. I already know how to do that and have in fact been doing it for a number of years.

      I need to get a graphic to a file (bitmap or TIFF or whatever; I can always convert it) from a handle to a DIB.

      I'd even settle for getting a DIB into a picturebox, that would suit me just fine!

      Comment

      • tlhintoq
        Recognized Expert Specialist
        • Mar 2008
        • 3532

        #4
        Ah - thanks for the clarification. I thought you were trying to save settings about your scanner so the next time you launched you weren't searching etc.

        Comment

        Working...