Extracting images from RichTextBox

后端 未结 2 1398
醉梦人生
醉梦人生 2021-01-14 13:35

I have an application where users may insert images into a RichTextBox. I\'d like to be able to replace all the images in the RTF with some token and store the images in se

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-14 13:51

    You can use this RTF Converter to extract the images of a RichTextBox using the class RtfVisualImageAdapter.

    Check out the examples:

    • RichTextBox: RtfWinForms (Windows Forms), RtfWindows (WPF)
    • Image Handling: Rtf2Html

提交回复
热议问题