[]
IDWriteFactory2
[Guid("0439fc60-ca44-4994-8dee-3a9af7b732ec")]
public class Factory2 : Factory1, IDisposable, IUnknown
Initializes a new instance of the Factory2 class.
public Factory2(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Creates a new instance of the Factory2 class.
public static Factory2 Create(FactoryType factoryType)
factoryType
FactoryTypeThe factory type.
HRESULT IDWriteFactory2::CreateCustomRenderingParams(FLOAT gamma, FLOAT enhancedContrast, FLOAT grayscaleEnhancedContrast, FLOAT clearTypeLevel, DWRITE_PIXEL_GEOMETRY pixelGeometry, DWRITE_RENDERING_MODE renderingMode, DWRITE_GRID_FIT_MODE gridFitMode, [out] IDWriteRenderingParams2** renderingParams)
public RenderingParams2 CreateCustomRenderingParams2(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode)
gamma
floatenhancedContrast
floatgrayscaleEnhancedContrast
floatclearTypeLevel
floatpixelGeometry
PixelGeometryrenderingMode
RenderingModegridFitMode
GridFitModeHRESULT IDWriteFactory2::CreateFontFallbackBuilder([out] IDWriteFontFallbackBuilder** fontFallbackBuilder)
public FontFallbackBuilder CreateFontFallbackBuilder()
HRESULT IDWriteFactory2::CreateGlyphRunAnalysis([in] DWRITE_GLYPH_RUN* glyphRun, [in, optional] DWRITE_MATRIX* transform, DWRITE_RENDERING_MODE renderingMode, DWRITE_MEASURING_MODE measuringMode, DWRITE_GRID_FIT_MODE gridFitMode, DWRITE_TEXT_ANTIALIAS_MODE antialiasMode, FLOAT baselineOriginX, FLOAT baselineOriginY, [out] IDWriteGlyphRunAnalysis** glyphRunAnalysis)
public GlyphRunAnalysis CreateGlyphRunAnalysis(GlyphRun glyphRun, Matrix3x2? transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY)
glyphRun
GlyphRuntransform
Matrix3x2?renderingMode
RenderingModemeasuringMode
MeasuringModegridFitMode
GridFitModeantialiasMode
TextAntialiasModebaselineOriginX
floatbaselineOriginY
floatHRESULT IDWriteFactory2::GetSystemFontFallback([out] IDWriteFontFallback** fontFallback)
public FontFallback GetSystemFontFallback()
HRESULT IDWriteFactory2::TranslateColorGlyphRun(FLOAT baselineOriginX, FLOAT baselineOriginY, [in] DWRITE_GLYPH_RUN* glyphRun, [in, optional] DWRITE_GLYPH_RUN_DESCRIPTION* glyphRunDescription, DWRITE_MEASURING_MODE measuringMode, [in, optional] DWRITE_MATRIX* worldToDeviceTransform, UINT32 colorPaletteIndex, [out] IDWriteColorGlyphRunEnumerator** colorLayers)
public ColorGlyphRunEnumerator TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun glyphRun, GlyphRunDescription glyphRunDescription, MeasuringMode measuringMode, Matrix3x2? transform, int colorPaletteIndex)
baselineOriginX
floatbaselineOriginY
floatglyphRun
GlyphRunglyphRunDescription
GlyphRunDescriptionmeasuringMode
MeasuringModetransform
Matrix3x2?colorPaletteIndex
intPerforms an explicit conversion from System.IntPtr to Factory2.
public static explicit operator Factory2(IntPtr nativePointer)
nativePointer
System.IntPtr