I need to recognize a binary bitmap which I received from another software. The bitmap is binary and I am trying to use AddImageFileFromMemory. I couldn't find a sample code which shows me how to create global memory handle which is int64. Can anybody help?
recognize memory bitmaps
- 757 Views
- Last Post 21 November 2013
Anastasia Galimova posted this 21 November 2013 - Last edited 24 November 2013
You can create a memory handle this way:
IntPtr handle = Marshal.AllocHGlobal((int)len); //len is the length of the source image
The following sample code could be helpful: Help > Search > AddImageFileFromMemory > Samples.
1309 questions, 4296 answers.