RichEditImageExportOptions Class
Contains options used to export document pages to images.
Namespace: DevExpress.XtraRichEdit.Export.Image
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
Declaration
Example
The following code snippet exports the first document page to an image with the specified edge length and JPEG format:
using DevExpress.XtraRichEdit;
using DevExpress.XtraRichEdit.Export.Image;
using DevExpress.Drawing;
using (var wordProcessor = new RichEditDocumentServer()) {
wordProcessor.LoadDocument(@"C:\Documents\Alice.docx");
RichEditImageExportOptions options = new RichEditImageExportOptions();
options.Format = DXImageFormat.Jpeg;
options.PageRange = "1";
options.LargestEdgeLength = 1080;
wordProcessor.Document.ExportToImage(@"C:\Documents\Image.jpeg", options);
}
Inheritance
Object
RichEditImageExportOptions
See Also