Click here to Skip to main content
12,245,502 members (51,379 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# VB VB.NET
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
}}

In above text is one image rtf format...
this text convert into image...
Posted 15-Dec-11 20:36pm
nane aa846
Edited 22-Feb-13 8:30am
v3
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Comments
Abhinav S 22-Feb-13 21:50pm
   
5.
Sergey Alexandrovich Kryukov 22-Feb-13 22:00pm
   
Thank you, Abhinav.
—SA
nane aa 23-Feb-13 5:25am
   
This is ok. I saw before "Writing Your One RF converter" that is so difficult.
if Possible to create a image and save vb.net Code.
Sergey Alexandrovich Kryukov 23-Feb-13 20:34pm
   
Difficult or not, but as the author of the article does that, this is what you need.
Will you accept the answer formally, then (green button)? I don't thin it's going to be easier...
—SA
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Set the RTF property of this text box to the value above. See here[^].
  Permalink  
Comments
nane aa 16-Dec-11 1:47am
   
i wont to create a image like .jpg
Sergey Alexandrovich Kryukov 22-Feb-13 13:51pm
   
And?.. It's pretty much apparent that OP knows it. But how to extract an image from it?! I answered in more detail, please see.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160426.1 | Last Updated 22 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100