Hello,
I am looking for a way to find all the images from a document and run them through a compressing do reduce the document size.
I found a way to find all images and I have the code to compress them but I am not sure how to replace the image after I find them.
foreach (Section section in this.radRichTextEditor1.Document.Sections){ foreach (Block block in section.Blocks) { Paragraph p = block as Paragraph; if (p != null) { foreach (Inline inlineElement in p.Inlines) { ImageInline image = inlineElement as ImageInline; if (image != null) { Telerik.WinControls.RichTextEditor.UI.BitmapSource bitSource; bitSource = image.ImageSource; } } } }}Regards, Dan
