Table of Contents

Class Factory1

Namespace
SharpDX.DirectWrite
Assembly
SharpDX.Direct2D1.dll

Creates a rendering parameters object with the specified properties.

[Guid("30572f99-dac6-41db-a16e-0486307e606a")]
public class Factory1 : Factory
Inheritance
Factory1
Derived
Inherited Members

Constructors

Factory1()

Creates a new instance of the Factory1 class with the Shared type.

public Factory1()

Factory1(FactoryType)

Creates a new instance of the Factory1 class.

public Factory1(FactoryType factoryType)

Parameters

factoryType FactoryType

The factory type.

Factory1(nint)

public Factory1(nint nativePtr)

Parameters

nativePtr nint

Methods

CreateCustomRenderingParams(float, float, float, float, PixelGeometry, RenderingMode, out RenderingParams1)

Creates a rendering parameters object with the specified properties.

public void CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, out RenderingParams1 renderingParams)

Parameters

gamma float

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

enhancedContrast float

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

enhancedContrastGrayscale float

The amount of contrast enhancement to use for grayscale antialiasing, zero or greater.

clearTypeLevel float

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.

renderingParams RenderingParams1

When this method returns, contains an address of a reference to the newly created rendering parameters object.

GetEudcFontCollection(out FontCollection, RawBool)

Gets a font collection representing the set of EUDC (end-user defined characters) fonts.

public void GetEudcFontCollection(out FontCollection fontCollection, RawBool checkForUpdates)

Parameters

fontCollection FontCollection

The font collection to fill.

checkForUpdates RawBool

Whether to check for updates.

Remarks

Note that if no EUDC is set on the system, the returned collection will be empty, meaning it will return success but GetFontFamilyCount will be zero.

Operators

explicit operator Factory1(nint)

public static explicit operator Factory1(nint nativePtr)

Parameters

nativePtr nint

Returns

Factory1