Skip to main content
A newer version of this page is available. .

DXRichEditMhtDocumentExporterOptions.KeepExternalImageSize Property

Fixes incorrect export of images in metafile formats. This is a dependency property.

Namespace: DevExpress.Xpf.RichEdit

Assembly: DevExpress.Xpf.RichEdit.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.RichEdit, DevExpress.Wpf.RichEdit

Declaration

public bool KeepExternalImageSize { get; set; }

Property Value

Type Description
Boolean

true, to export an image in its original size; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to KeepExternalImageSize
DXRichEditDocumentExportOptions
.MhtOptions .KeepExternalImageSize

Remarks

When resizing an image whose original format is metafile, GDI+ may render it incorrectly. To resolve the issue, set the KeepExternalImageSize option to true to maintain the original picture size when the document is exported in MHT format.

See Also