DynaPDF Manual - Page 763

Previous Page 762   Index   Next Page 764

Function Reference
Page 763 of 839
metafile or currently defined view. This flag should always be set if a
user defined view is used. See InsertMetafileExt() for further
information.
mfCurrComprFilter
If set, the currently active compression filter is used to compress the image
(see SetCompressionFilter()). This flag is used only if the file is rastered to an
image.
mfDebug
If set, the EMF record names are printed to the content stream which
produces a specific output. Open the PDF file in a good text editor
such as Textpad to view the output. The PDF file must not be
compressed if this flag is used, otherwise you can't see the debug
strings. Compression can be disabled with the function
SetCompressionLevel().
mfDefault
This is the default behaviour. No specific parameters are used for
metafile conversion.
mfDefBkModeTransp
If set, the initial background mode is set to transparent. SetBkMode
records still override this state. The default background mode is
opaque in the GDI. This state causes that a rectangle is printed in
background of any text string, also if the rectangle is not required.
Especially if text strings are printed as single characters the opaque
background can drastically increase the resulting file size due to the
many rectangles. This flag should always be set if the EMF or WMF
files do not initialize the background mode to the required value.
mfDisableRasterEMF
If set, EMF files are no longer rastered to an image if the file uses ROP
codes which combine background and foregound colors. Many EMF
files use such ROP codes but it is often not required to raster the EMF
file because many ROP codes which combine background and
foreground colors have no effect if no other object was drawn in
background.
mfDontSkipROP_DPa
If set, the ROP code 0x00A000C9 (DPa) is considered in BitBlt, StretchBlt,
TranparentBlt, and AlphaBlend records. This kind of ROP code combines a
pattern brush with the backdrop. If the flag mfDisableRasterEMF is absent,
the usage of such a ROP code causes that the file is rendered to an image.
mfFullScale
If set, all coordinates are scaled to the output window size. Set this
flag if the EMF file uses 32 bit coordinates, e.g. large CAD drawings.
Full scaling avoids floating point overflows in PDF viewer
applications because all coordinate transformations are already
applied. The resulting file size is also smaller due to the smaller
coordinate values which must be stored in the PDF file.
 

Previous topic: SetMetaConvFlags

Next topic: SetMetadata, SetMinLineWidth2 (Rendering Engine)