Richtextbox: how are pictures stored?

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
 
X

xcal

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.
 
N

nagar

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top