[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.RenderingParams

Class RenderingParams

Namespace
GrapeCity.Documents.DX.DirectWrite
Assembly
GcDocs.DX.Windows.dll

IDWriteRenderingParams

[Guid("2f0da53a-2add-47cd-82ee-d9ec34688e75")]
public class RenderingParams : ComObject, IDisposable, IUnknown
Inheritance
object
RenderingParams
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

RenderingParams(IntPtr)

Initializes a new instance of the RenderingParams class.

public RenderingParams(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

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.

public static RenderingParams Create(Factory factory, IntPtr monitorHandle)

Parameters

factory Factory

A reference to a DirectWrite factory Factory

monitorHandle System.IntPtr

A handle for the specified monitor.

Returns

RenderingParams

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

Creates a rendering parameters object with the specified properties.

public static RenderingParams Create(Factory factory, float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode)

Parameters

factory Factory

A reference to a DirectWrite factory Factory

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.

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.

Returns

RenderingParams

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.

public static RenderingParams Create(Factory factory)

Parameters

factory Factory

A reference to a DirectWrite factory Factory

Returns

RenderingParams

GetClearTypeLevel()

float IDWriteRenderingParams::GetClearTypeLevel()

public float GetClearTypeLevel()

Returns

float

GetEnhancedContrast()

float IDWriteRenderingParams::GetEnhancedContrast()

public float GetEnhancedContrast()

Returns

float

GetGamma()

float IDWriteRenderingParams::GetGamma()

public float GetGamma()

Returns

float

GetPixelGeometry()

DWRITE_PIXEL_GEOMETRY IDWriteRenderingParams::GetPixelGeometry()

public PixelGeometry GetPixelGeometry()

Returns

PixelGeometry

GetRenderingMode()

DWRITE_RENDERING_MODE IDWriteRenderingParams::GetRenderingMode()

public RenderingMode GetRenderingMode()

Returns

RenderingMode

Operators

explicit operator RenderingParams(IntPtr)

Performs an explicit conversion from System.IntPtr to RenderingParams.

public static explicit operator RenderingParams(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

RenderingParams