PXC_DrawToDeviceFlags Enumeration

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
Line 6: Line 6:
 
{{ToReview}}
 
{{ToReview}}
  
Specifies the ...
+
Specifies different render modes used in [[PXV:IPXC_Page_DrawToDevice|IPXC_Page::DrawToDevice]] method.
  
 
== Syntax ==
 
== Syntax ==
 
<pre class="brush:cpp;gutter:false">enum PXC_DrawToDeviceFlags
 
<pre class="brush:cpp;gutter:false">enum PXC_DrawToDeviceFlags
 
{
 
{
     DDF_AsVector            = 1,
+
     DDF_AsVector            = 0x0001,
     DDF_AsGrayscale          = 2,
+
     DDF_AsGrayscale          = 0x0002,
     DDF_ForceAsColor        = 4,
+
     DDF_ForceAsColor        = 0x0004,
     DDF_EmbeddedFontAsCurves = 16,
+
     DDF_EmbeddedFontAsCurves = 0x0010,
     DDF_AllFontsAsCuves      = 48,
+
     DDF_AllFontsAsCuves      = 0x0030,
 
};
 
};
 
</pre>
 
</pre>
Line 21: Line 21:
 
== Constants ==
 
== Constants ==
 
;DDF_AsVector
 
;DDF_AsVector
:The ...
+
:When set the page content will be rendered as vector graphic whenever it is possible (via GDI functions). Otherwise, the content will be rasterized and drawn as an image.
 
;DDF_AsGrayscale
 
;DDF_AsGrayscale
:The ...
+
:When set, forces rendering to be done in grayscale. Should not be used together with the '''DDF_ForceAsColor''' flag.
 
;DDF_ForceAsColor
 
;DDF_ForceAsColor
:The ...
+
:When set, forces rendering to be done in color. If both '''DDF_ForceAsColor''' and '''DDF_ForceAsColor''' flags are not set, color mode is chosen automatically.
 
;DDF_EmbeddedFontAsCurves
 
;DDF_EmbeddedFontAsCurves
:The ...
+
:When set, embedded fonts will be rendered as outlines. Otherwise, for some type of fonts, a temporarily installed font may be used.
 
;DDF_AllFontsAsCuves
 
;DDF_AllFontsAsCuves
:The ...
+
:Whe set, all fonts will be rendered as outlines.

Latest revision as of 07:25, 1 September 2021


Specifies different render modes used in IPXC_Page::DrawToDevice method.

Syntax

enum PXC_DrawToDeviceFlags
{
    DDF_AsVector             = 0x0001,
    DDF_AsGrayscale          = 0x0002,
    DDF_ForceAsColor         = 0x0004,
    DDF_EmbeddedFontAsCurves = 0x0010,
    DDF_AllFontsAsCuves      = 0x0030,
};

Constants

DDF_AsVector
When set the page content will be rendered as vector graphic whenever it is possible (via GDI functions). Otherwise, the content will be rasterized and drawn as an image.
DDF_AsGrayscale
When set, forces rendering to be done in grayscale. Should not be used together with the DDF_ForceAsColor flag.
DDF_ForceAsColor
When set, forces rendering to be done in color. If both DDF_ForceAsColor and DDF_ForceAsColor flags are not set, color mode is chosen automatically.
DDF_EmbeddedFontAsCurves
When set, embedded fonts will be rendered as outlines. Otherwise, for some type of fonts, a temporarily installed font may be used.
DDF_AllFontsAsCuves
Whe set, all fonts will be rendered as outlines.