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?

asked 21 Nov '13, 12:24

ctuser's gravatar image


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.


answered 21 Nov '13, 18:50

Anastasia%20Galimova's gravatar image

Anastasia Ga... ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 21 Nov '13, 12:24

Seen: 752 times

Last updated: 24 Nov '13, 16:05

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal