图像rtftext到图像保存 [英] image rtftext to image save

查看:69
本文介绍了图像rtftext到图像保存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要rtf文本来创建图像。

rtf text:



I need rtf text to create a image.
rtf text:

{\rtf1\ansi\deff0\deftab720
{\pict\wmetafile8\picw557\pich762\picscalex99\picscaley98\picwgoal316\pichgoal436
010009000003260100000200170000000000050000000B0200000000050000000C02FA022D0203
0000001E00050000000C0202032F02050000000B0200000000030000001E00050000000C020203
2F02050000000B0200000000050000000B0200000000030000001E00050000000C020603320205
0000000B0200000000050000000B0200000000050000000B0200000000030000001E0005000000
0C0208033402050000000B0200000000050000000B0200000000050000000B0200000000050000
000B0200000000030000001E00050000000902000000000400000002010100050000000102FFFF
FF00040000002E01180005000000310201000000050000000C02C0020002050000000B02000000
00050000000B0200000000050000000B0200000000050000000B0200000000050000000B020000
00001200000026060F001A00FFFFFFFF000010000000C0FFFFFFC0FFFFFFC0010000800200000B
00000026060F000C004D617468547970650000800010000000FB02C0FD00000000000090010000
00020002001053796D626F6C0002040000002D01000008000000320A4A02400001000000F20017
00000026060F0024004D617468547970655555180003010103000A010315000001000B11110D02
862B220000000A00000026060F000A00FFFFFFFF01000000000010000000FB0210000700000000
00BC02000000000102022253797374656D0000040000002D01010004000000F001000004000000
2701FFFF040000002701FFFF040000002701FFFF040000002701FFFF040000002701FFFF030000
000000
}}





上面的文字是一个图像rtf格式...

这个文字转换成图像...



In above text is one image rtf format...
this text convert into image...

推荐答案

这是嵌入式RTF图像中的基本信息(\ pict标签):

http://www.fileformat.info/format/rtf/egff.htm [ ^ ],

http://en.wikipedia.org/ wiki / Rich_Text_Format#Pictures [ ^ ]。



这些文章没有解释提取图形的必要细节。当然,您可以在完整的文档中找到它:

http://interglacial.com/rtf/ [ ^ ],

http://www.microsoft.com/en-us/download/details.aspx?id=10725 [ ^ ]。



看起来这个CodeProject文章提供了提取图像所需的代码:编写自己的RTF转换器 [ ^ ]。



查看Rtf2Html应用程序。文章显示实际提取的图片。



-SA
This is the very basic information in embedded RTF images ("\pict" tag):
http://www.fileformat.info/format/rtf/egff.htm[^],
http://en.wikipedia.org/wiki/Rich_Text_Format#Pictures[^].

These article don''t explain necessary detail to extract graphics. Of course, you can find it in complete documentation:
http://interglacial.com/rtf/[^],
http://www.microsoft.com/en-us/download/details.aspx?id=10725[^].

It looks like this CodeProject article provides the code required to extract the image: Writing Your Own RTF Converter[^].

Look at Rtf2Html application. The article shows that the pictures is actually extracted.

—SA


设置RTF属性此文本框的值为上面的值。请参见此处 [ ^ ]。
Set the RTF property of this text box to the value above. See here[^].


这篇关于图像rtftext到图像保存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆