[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.RenderingParams.Create

Create Method

Create(Factory)

Creates a rendering parameters object with default settings for the primary monitor. Different monitors may have different rendering parameters, for more information see the {{How to Add Support for Multiple Monitors}} topic.

Declaration
public static RenderingParams Create(Factory factory)
Parameters
Type Name Description
Factory factory

A reference to a DirectWrite factory Factory

Returns
Type Description
RenderingParams

Create(Factory, IntPtr)

Creates a rendering parameters object with default settings for the specified monitor. In most cases, this is the preferred way to create a rendering parameters object.

Declaration
public static RenderingParams Create(Factory factory, IntPtr monitorHandle)
Parameters
Type Name Description
Factory factory

A reference to a DirectWrite factory Factory

IntPtr monitorHandle

A handle for the specified monitor.

Returns
Type Description
RenderingParams

Create(Factory, float, float, float, PixelGeometry, RenderingMode)

Creates a rendering parameters object with the specified properties.

Declaration
public static RenderingParams Create(Factory factory, float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode)
Parameters
Type Name Description
Factory factory

A reference to a DirectWrite factory Factory

float gamma

The gamma level to be set for the new rendering parameters object.

float enhancedContrast

The enhanced contrast level to be set for the new rendering parameters object.

float clearTypeLevel

The ClearType level to be set for the new rendering parameters object.

PixelGeometry pixelGeometry

Represents the internal structure of a device pixel (that is, the physical arrangement of red, green, and blue color components) that is assumed for purposes of rendering text.

RenderingMode renderingMode

A value that represents the method (for example, ClearType natural quality) for rendering glyphs.

Returns
Type Description
RenderingParams