From: mickey on 20 Dec 2009 12:29 Hi All I have successfully retreived a pointer to scanned image data but all efforts to turn this data into a bitmap have failed. Can anybody help? Thanks Mickey
From: Family Tree Mike on 20 Dec 2009 13:07 On 12/20/2009 12:29 PM, mickey wrote: > Hi All > I have successfully retreived a pointer to scanned image data but all > efforts to turn this data into a bitmap have failed. Can anybody help? > > Thanks > Mickey A pointer? That isn't likely. You would need the actual image data. If it really is a handle to a GDI+ bitmap, then look at Image.FromHBitmap(handle as IntPtr). -- Mike
From: Herfried K. Wagner [MVP] on 20 Dec 2009 18:28 Am 20.12.2009 18:29, schrieb mickey: > I have successfully retreived a pointer to scanned image data but all > efforts to turn this data into a bitmap have failed. Can anybody help? Did you already take a look at the overloaded 'Bitmap' constructor? There is one overload ('New(Int32, Int32, Int32, PixelFormat, IntPtr)') which expects a pointer to binary bitmap data in its last parameter. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
From: mickey on 20 Dec 2009 20:54 Thanks I am now looking into that exact thing. Mickey "Herfried K. Wagner [MVP]" <hirf-spam-me-here(a)gmx.at> wrote in message news:ucQ8dwcgKHA.5300(a)TK2MSFTNGP02.phx.gbl... > Am 20.12.2009 18:29, schrieb mickey: >> I have successfully retreived a pointer to scanned image data but all >> efforts to turn this data into a bitmap have failed. Can anybody help? > > Did you already take a look at the overloaded 'Bitmap' constructor? There > is one overload ('New(Int32, Int32, Int32, PixelFormat, IntPtr)') which > expects a pointer to binary bitmap data in its last parameter. > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
|
Pages: 1 Prev: index of an element in a control array Next: Backgroundworker problem |