[]
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)
Type | Name | Description |
---|---|---|
Factory | factory | A reference to a DirectWrite factory Factory |
Type | Description |
---|---|
RenderingParams |
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)
Type | Name | Description |
---|---|---|
Factory | factory | A reference to a DirectWrite factory Factory |
IntPtr | monitorHandle | A handle for the specified monitor. |
Type | Description |
---|---|
RenderingParams |
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)
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. |
Type | Description |
---|---|
RenderingParams |