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()
public Factory1()
Factory1(FactoryType)
Creates a new instance of the Factory1 class.
public Factory1(FactoryType factoryType)
Parameters
factoryType
FactoryTypeThe 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
floatThe gamma level to be set for the new rendering parameters object.
enhancedContrast
floatThe enhanced contrast level to be set for the new rendering parameters object.
enhancedContrastGrayscale
floatThe amount of contrast enhancement to use for grayscale antialiasing, zero or greater.
clearTypeLevel
floatThe ClearType level to be set for the new rendering parameters object.
pixelGeometry
PixelGeometryRepresents 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
RenderingModeA value that represents the method (for example, ClearType natural quality) for rendering glyphs.
renderingParams
RenderingParams1When 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
FontCollectionThe font collection to fill.
checkForUpdates
RawBoolWhether 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