Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting Embedded WMFs from RTFs

Status
Not open for further replies.

JamieKitson

Programmer
Oct 18, 2003
7
GB
Hi,

I am trying to extract embedded images from rtf files. The rtf specification says that the "\wmetafile" control word means that the image I am trying to extract is wmf encoded. However when I extract the data and attempt to load it in to a TMetafile Delphi throws an error. If I save the data to a file Windows can interprit it ok (the dimensions get a little screwed). The image data from the rtf looks right according to the wmf specification, but if I convert the original bmp to wmf and view that data the header looks very different (much longer for a start)

Any help would be very very greatfully recieved, I am at the end of my teather :)

Cheers, Jamie

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top