Click here to Skip to main content
15,892,809 members
Home / Discussions / C#
   

C#

 
GeneralRe: Advise for debugging Pin
HAHAHA_NEXT3-Mar-04 8:20
HAHAHA_NEXT3-Mar-04 8:20 
GeneralRe: Advise for debugging Pin
Tom Larsen3-Mar-04 11:19
Tom Larsen3-Mar-04 11:19 
GeneralRaw Image to Bmp Image Pin
Alexsander Antunes3-Mar-04 5:44
professionalAlexsander Antunes3-Mar-04 5:44 
GeneralRe: Raw Image to Bmp Image Pin
Mazdak3-Mar-04 5:54
Mazdak3-Mar-04 5:54 
GeneralRe: Raw Image to Bmp Image Pin
Heath Stewart3-Mar-04 6:10
protectorHeath Stewart3-Mar-04 6:10 
GeneralRe: Raw Image to Bmp Image Pin
Alexsander Antunes3-Mar-04 6:25
professionalAlexsander Antunes3-Mar-04 6:25 
GeneralRe: Raw Image to Bmp Image Pin
Mazdak3-Mar-04 6:27
Mazdak3-Mar-04 6:27 
GeneralRe: Raw Image to Bmp Image Pin
Heath Stewart3-Mar-04 6:36
protectorHeath Stewart3-Mar-04 6:36 
It would be possible to create all the information and serialize that (not .NET serialization, mind you) that to a stream, but it is incredibly error-prone and pain in the butt. For an app I wrote I did something similar that extracts icons and I have to serialize these correctly using the chain of sturctures required. Believe me, you don't want to do that!

As you saw in my other answer, .NET does provide a way to do this. You could always P/Invoke native APIs like CreateDIBitmap to accomplish this as well. These basically take minimal information and create and serialize the structures for your. I was about to answer that way when I found that you can't (easily) get a Bitmap from a handle WTF | :WTF: and noticed the other constructor I've never cared to find before (that basically does the same thing I was going to mention with native APIs).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Raw Image to Bmp Image Pin
Heath Stewart3-Mar-04 6:26
protectorHeath Stewart3-Mar-04 6:26 
GeneralRe: Raw Image to Bmp Image Pin
Mazdak3-Mar-04 6:29
Mazdak3-Mar-04 6:29 
GeneralRe: Raw Image to Bmp Image Pin
Alexsander Antunes3-Mar-04 8:21
professionalAlexsander Antunes3-Mar-04 8:21 
GeneralRe: Raw Image to Bmp Image Pin
Heath Stewart3-Mar-04 8:36
protectorHeath Stewart3-Mar-04 8:36 
GeneralRe: Raw Image to Bmp Image Pin
Alexsander Antunes3-Mar-04 8:51
professionalAlexsander Antunes3-Mar-04 8:51 
GeneralRe: Raw Image to Bmp Image Pin
Heath Stewart3-Mar-04 8:57
protectorHeath Stewart3-Mar-04 8:57 
GeneralRe: Raw Image to Bmp Image Pin
Alexsander Antunes3-Mar-04 8:54
professionalAlexsander Antunes3-Mar-04 8:54 
GeneralRe: Raw Image to Bmp Image Pin
Heath Stewart3-Mar-04 8:58
protectorHeath Stewart3-Mar-04 8:58 
QuestionHow to draw on nonclient area of a form ? Pin
Andres Coder3-Mar-04 5:11
Andres Coder3-Mar-04 5:11 
AnswerRe: How to draw on nonclient area of a form ? Pin
Andres Coder3-Mar-04 5:30
Andres Coder3-Mar-04 5:30 
AnswerRe: How to draw on nonclient area of a form ? Pin
Heath Stewart3-Mar-04 6:09
protectorHeath Stewart3-Mar-04 6:09 
GeneralRe: How to draw on nonclient area of a form ? Pin
Andres Coder3-Mar-04 7:01
Andres Coder3-Mar-04 7:01 
GeneralRe: How to draw on nonclient area of a form ? Pin
Heath Stewart3-Mar-04 8:40
protectorHeath Stewart3-Mar-04 8:40 
GeneralRe: How to draw on nonclient area of a form ? Pin
Andres Coder3-Mar-04 8:44
Andres Coder3-Mar-04 8:44 
GeneralConnecting to MySQL with ODBC Pin
sps-itsec463-Mar-04 3:12
sps-itsec463-Mar-04 3:12 
GeneralRe: Connecting to MySQL with ODBC Pin
Heath Stewart3-Mar-04 6:07
protectorHeath Stewart3-Mar-04 6:07 
GeneralRe: Connecting to MySQL with ODBC Pin
sps-itsec463-Mar-04 8:41
sps-itsec463-Mar-04 8:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.