I know I have seen one, and now that I am at a point where I need to do this, I can't find it.
Copy link to clipboard
I can't find a sample that does it from an in memory image but this sample does it from a image file, and might be a place to start, in the Acrobat SDK -> Snippets section ->AddImageSnip.cpp
I don't understand what you mean by:
"Acrobat SDK -> Snippets section ->AddImageSnip.cpp"
I found a Snippet Runner sampleapp and it has a Snippets folder, but there is no such file in the folder. Trying to run that project, but it gets errors in VS.
I did find a description of as being an example of ceating an XObject from a jpeg file, which would be problematic for what I am trying to do.
And in poking around, I think I found what I saw before. Also a File based example, but when it does the bmp, it is read into memory and then the conversion/creation is done.