Visit Gigasoft's Web Site
 ProEssentials v9 Help

EmfDc

Scope

Pego, Pesgo, Pe3do, Pepso, Pepco

Type

Int32

Default

PEEDC_DISPLAY_DPI_ADJ

.NET

PeUserInterface.Dialog.EmfType

Ocx|Vcl

EmfDc

DLL

PEP_nEMFDC

 

Purpose

Controls the Device Context used in recording the enhanced metafile when exporting from the built-in export dialog.

 

.NET Gigasoft.Enums.

ActiveX and

 

EmfType

DLL Constants

Description

DisplayDpiAdjusted

PEEDC_DISPLAY_DPI_ADJ (0)

Uses the current video display Device Context. Normally DPI will be around 96 DPI, and impossible to change via CreateDC. This setting hacks the metafile header to simulate varying DPI settings.

Display

PEEDC_DISPLAY (1)

Uses the current video display Device Context. Metafile header is not modified, and DPI of the metafile will match the DPI of the video display. Best if export will only be viewed on a monitor and never printed.

Printer

PEEDC_PRINTER (2)

Uses the current default printer driver. This setting may be the best solution if ExportImageDpi will be set to 300 DPI and end -user is prevented from changing via HideExportImageDpi = True.

 

Comments

Legacy enhanced metafile support (Gdi) is well supported. But the older legacy WMF format is still the most supported and efficient of all metafile formats. The newer EnhancedPlus metafile (supporting GdiPlus) is capable of reproducing the highest quality images, though support within Office and Adobe products may be limited.

 

PeUserInterface.Dialog.EmfDC members of Pego.PeUserInterface.Dialog, Pesgo.PeUserInterface.Dialog, Pe3do.PeUserInterface.Dialog, Pepso.PeUserInterface.Dialog, Pepco.PeUserInterface.Dialog

 

See Also: EmfBitmapGradients, EmfType, AllowEmfExport