recognize memory bitmaps

  • 756 Views
  • Last Post 21 November 2013
ctuser posted this 21 November 2013

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?

Anastasia Galimova posted this 21 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.

Close