Community

Question about Engine::OpenBitmapBits Answered

Dear All,

 

We use the following code to convert the image from OpenCV's cv :: Mat to ImageDocument (using C ++, the out-of-process server model):

 

CSafePtr <IImageDocument> imageDocument;

Enigne-> OpenBitmapBits (BitmapBitsFormatEnum :: BBF_Color, mat.cols, mat.rows, 3 * mat.cols, 300, 300, (__int64) mat.data, 0, & imageDocument);

 

imageDocument will always be nullptr. Do you have any comments about this?

 

Thank you

Was this article helpful?

0 out of 0 found this helpful

Comments

2 comments

  • Avatar
    김태성

    I solved this problem changing Inproc.

    would you tell me how to load memory bitmap outproc mode, please?

    Thank you!

    0
  • Avatar
    IvanPopov

    As stated in the description of method IEngine::OpenBitmapBits() in the Developer's Help article API Reference → Engine Object → Processing Methods"this method does not work if the Engine object is created using the OutprocLoader object".

    0

Please sign in to leave a comment.