Click here to Skip to main content
15,918,808 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
alleyes20-Jan-10 3:52
professionalalleyes20-Jan-10 3:52 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
alleyes20-Jan-10 5:27
professionalalleyes20-Jan-10 5:27 
AnswerRe: Saving Bitmap image data to HGLOBAL Pin
Mark Salsbery20-Jan-10 7:01
Mark Salsbery20-Jan-10 7:01 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
alleyes20-Jan-10 7:08
professionalalleyes20-Jan-10 7:08 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
Mark Salsbery20-Jan-10 7:18
Mark Salsbery20-Jan-10 7:18 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
alleyes20-Jan-10 7:29
professionalalleyes20-Jan-10 7:29 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
Mark Salsbery20-Jan-10 7:36
Mark Salsbery20-Jan-10 7:36 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
alleyes20-Jan-10 7:48
professionalalleyes20-Jan-10 7:48 
Mark Salsbery wrote:
You get a pointer to that
block of memory with GlobalLock().


That's what I meant by pointer but mis-construed it a bit.

To summarize then. I can copy the bitmap data to this HGLOBAL using managed Bitmap classes? I do have the advantage of BITMAPINFOHEADER being available from the image that is to be copied from so I have most of that information which happens to be common to both the images in question

If copying to the memory block is the lock still in place or do you call an GlobalUnLock first.
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
Mark Salsbery20-Jan-10 8:03
Mark Salsbery20-Jan-10 8:03 
GeneralRe: Saving Bitmap image data to HGLOBAL [modified] Pin
alleyes20-Jan-10 8:34
professionalalleyes20-Jan-10 8:34 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
alleyes20-Jan-10 9:17
professionalalleyes20-Jan-10 9:17 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
Mark Salsbery20-Jan-10 9:42
Mark Salsbery20-Jan-10 9:42 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
alleyes20-Jan-10 9:58
professionalalleyes20-Jan-10 9:58 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
Mark Salsbery20-Jan-10 10:07
Mark Salsbery20-Jan-10 10:07 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
alleyes20-Jan-10 10:09
professionalalleyes20-Jan-10 10:09 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
Mark Salsbery20-Jan-10 10:20
Mark Salsbery20-Jan-10 10:20 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
alleyes20-Jan-10 10:31
professionalalleyes20-Jan-10 10:31 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
alleyes20-Jan-10 10:45
professionalalleyes20-Jan-10 10:45 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
Mark Salsbery20-Jan-10 11:33
Mark Salsbery20-Jan-10 11:33 
GeneralRe: Saving Bitmap image data to HGLOBAL [modified] Pin
alleyes21-Jan-10 2:15
professionalalleyes21-Jan-10 2:15 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
Mark Salsbery21-Jan-10 5:19
Mark Salsbery21-Jan-10 5:19 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
alleyes21-Jan-10 5:33
professionalalleyes21-Jan-10 5:33 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
Mark Salsbery21-Jan-10 5:42
Mark Salsbery21-Jan-10 5:42 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
alleyes21-Jan-10 5:54
professionalalleyes21-Jan-10 5:54 
GeneralRe: Saving Bitmap image data to HGLOBAL Pin
Mark Salsbery21-Jan-10 6:05
Mark Salsbery21-Jan-10 6:05 

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.