[]
IDWriteRenderingParams
[Guid("2f0da53a-2add-47cd-82ee-d9ec34688e75")]
public class RenderingParams : ComObject, IDisposable, IUnknown
Initializes a new instance of the RenderingParams class.
public RenderingParams(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
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)
factory
FactoryA reference to a DirectWrite factory Factory
monitorHandle
System.IntPtrA handle for the specified monitor.
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)
factory
FactoryA reference to a DirectWrite factory Factory
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.
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.
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)
float IDWriteRenderingParams::GetClearTypeLevel()
public float GetClearTypeLevel()
float IDWriteRenderingParams::GetEnhancedContrast()
public float GetEnhancedContrast()
float IDWriteRenderingParams::GetGamma()
public float GetGamma()
DWRITE_PIXEL_GEOMETRY IDWriteRenderingParams::GetPixelGeometry()
public PixelGeometry GetPixelGeometry()
DWRITE_RENDERING_MODE IDWriteRenderingParams::GetRenderingMode()
public RenderingMode GetRenderingMode()
Performs an explicit conversion from System.IntPtr to RenderingParams.
public static explicit operator RenderingParams(IntPtr nativePointer)
nativePointer
System.IntPtr