Richtext格式就是RTF格式。需要遵循RTF规范来加入图片。
可以参考如下CodeProject网站上的文章来实现插入图片的功能。该文章详细分析了如何插入图片文件进RichTextBox,并附有相关的示例源码。
Insert Plain Text and Images into RichTextBox at Runtime
http://www.codeproject.com/cs/miscctrl/csexrichtextbox.asp
[C#]
private void AutoSizeControl(Control control, int textPadding)
{
// Create a Graphics object for the Control.
Graphics g = control.CreateGraphics();
// Get the Size needed to accommodate the formatted Text.
Size preferredSize = g.MeasureString(
control.Text, control.Font).ToSize();
// Pad the text and resize the control.
control.ClientSize = new Size(
preferredSize.Width + (textPadding * 2),
preferredSize.Height+(textPadding * 2) );