How to convert IPictureDisp to System.Drawing.Image

后端 未结 5 469
刺人心
刺人心 2021-01-21 00:38

From a COM library (Microsoft Office Document Imaging aka MODI) I receive an image as an IPictureDisp which I would like to convert to a System.Drawing.Image object.

Wh

5条回答
  •  暖寄归人
    2021-01-21 01:18

    Check out this article.

    It describes three different options to take, just pick the one you find easiest or "cleanest" for your purposes (including the one you claim not to be working for you).


    Olivier Jacot-Descombes: The link above is broken. I've added the corresponding link from the Internet Archive WayBackMachine:

    Converting between IPictureDisp and System.Drawing.Image (MSDN Blogs > Andrew Whitechapel).

提交回复
热议问题