Class DWriteRenderingParams
The interface that represents text rendering settings for glyph rasterization and filtering.
Inherited Members
Namespace: JeremyAnsel.DirectX.DWrite
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public sealed class DWriteRenderingParams : IDisposable, IDWriteReleasable
Constructors
| Edit this page View SourceDWriteRenderingParams(object)
Initializes a new instance of the DWriteRenderingParams class.
Declaration
public DWriteRenderingParams(object handle)
Parameters
| Type | Name | Description |
|---|---|---|
| object | handle | A DWrite rendering params interface. |
Properties
| Edit this page View SourceClearTypeLevel
Gets the ClearType level. Valid values range from 0.0f (no ClearType) to 1.0f (full ClearType).
Declaration
public float ClearTypeLevel { get; }
Property Value
| Type | Description |
|---|---|
| float |
EnhancedContrast
Gets the amount of contrast enhancement. Valid values are greater than or equal to zero.
Declaration
public float EnhancedContrast { get; }
Property Value
| Type | Description |
|---|---|
| float |
Gamma
Gets the gamma value used for gamma correction. Valid values must be greater than zero and cannot exceed 256.
Declaration
public float Gamma { get; }
Property Value
| Type | Description |
|---|---|
| float |
Handle
Gets an handle representing the DWrite object interface.
Declaration
public object Handle { get; }
Property Value
| Type | Description |
|---|---|
| object |
PixelGeometry
Gets the pixel geometry.
Declaration
public DWritePixelGeometry PixelGeometry { get; }
Property Value
| Type | Description |
|---|---|
| DWritePixelGeometry |
RenderingMode
Gets the rendering mode.
Declaration
public DWriteRenderingMode RenderingMode { get; }
Property Value
| Type | Description |
|---|---|
| DWriteRenderingMode |
Methods
| Edit this page View SourceDispose()
Immediately releases the unmanaged resources used by the DWrite object.
Declaration
public void Dispose()
Release()
Releases the managed reference to the COM DWrite interface.
Declaration
public void Release()
ToBoolean()
Gets a boolean indicating if the handle is not null.
Declaration
public bool ToBoolean()
Returns
| Type | Description |
|---|---|
| bool | A boolean |
Operators
| Edit this page View Sourceimplicit operator bool(DWriteRenderingParams?)
Gets a boolean indicating if the handle is not null.
Declaration
public static implicit operator bool(DWriteRenderingParams? value)
Parameters
| Type | Name | Description |
|---|---|---|
| DWriteRenderingParams | value | A DWrite object. |
Returns
| Type | Description |
|---|---|
| bool | A boolean |