Richtextbox: how are pictures stored?

  • Thread starter Thread starter nagar
  • Start date Start date
N

nagar

I'm using the RichTextBox component to store formatted text and
pictures. I noticed that inserted pictures are always stored as WMF,
that causes the size of the generated RTF to become very big.
Is there a way to use an alternative way to store pictures (for
example, in JPG, PNG or GIF) instead of bitmap?

Thanks.
Andrea
 
from msdn 2008:

"While RichTextBox supports copying and pasting of images, certain scenarios
are currently unsupported and may not work properly. The following table
summarizes these scenarios and expected results.

Image Copy Source
Image Paste Result

Image source is a graphic metafile
No image is pasted

Image source uses relative path or link
Garbled or blank image is pasted

Image source link does not end with an expected image format (.PNG, .JPG,
..GIF)
Garbled or blank image is pasted

Image source copied from malformed RichText (RTF)
Link to image source is pasted (rather than image)"

hope this helps, Carlos.
 
This doesn't answer my question. What I need to know is if the RTFBox
can natively store pictures in GIF or JPG format instead of WMF as
being the latter not compressed, caused the size of the RTF to
explode.
 
Back
Top