Skip to main content
All docs
V24.1

RichEditImageExportOptions Class

Contains options used to export document pages to images.

Namespace: DevExpress.XtraRichEdit.Export.Image

Assembly: DevExpress.RichEdit.v24.1.Core.dll

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

public class RichEditImageExportOptions

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