[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.Factory2

Class Factory2

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

IDWriteFactory2

[Guid("0439fc60-ca44-4994-8dee-3a9af7b732ec")]
public class Factory2 : Factory1, IDisposable, IUnknown
Inheritance
object
Factory2
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

Factory2(IntPtr)

Initializes a new instance of the Factory2 class.

public Factory2(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

Create(FactoryType)

Creates a new instance of the Factory2 class.

public static Factory2 Create(FactoryType factoryType)

Parameters

factoryType FactoryType

The factory type.

Returns

Factory2

CreateCustomRenderingParams2(float, float, float, float, PixelGeometry, RenderingMode, GridFitMode)

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)

Parameters

gamma float
enhancedContrast float
grayscaleEnhancedContrast float
clearTypeLevel float
pixelGeometry PixelGeometry
renderingMode RenderingMode
gridFitMode GridFitMode

Returns

RenderingParams2

CreateFontFallbackBuilder()

HRESULT IDWriteFactory2::CreateFontFallbackBuilder([out] IDWriteFontFallbackBuilder** fontFallbackBuilder)

public FontFallbackBuilder CreateFontFallbackBuilder()

Returns

FontFallbackBuilder

CreateGlyphRunAnalysis(GlyphRun, Matrix3x2?, RenderingMode, MeasuringMode, GridFitMode, TextAntialiasMode, float, float)

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)

Parameters

glyphRun GlyphRun
transform Matrix3x2?
renderingMode RenderingMode
measuringMode MeasuringMode
gridFitMode GridFitMode
antialiasMode TextAntialiasMode
baselineOriginX float
baselineOriginY float

Returns

GlyphRunAnalysis

GetSystemFontFallback()

HRESULT IDWriteFactory2::GetSystemFontFallback([out] IDWriteFontFallback** fontFallback)

public FontFallback GetSystemFontFallback()

Returns

FontFallback

TranslateColorGlyphRun(float, float, GlyphRun, GlyphRunDescription, MeasuringMode, Matrix3x2?, int)

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)

Parameters

baselineOriginX float
baselineOriginY float
glyphRun GlyphRun
glyphRunDescription GlyphRunDescription
measuringMode MeasuringMode
transform Matrix3x2?
colorPaletteIndex int

Returns

ColorGlyphRunEnumerator

Operators

explicit operator Factory2(IntPtr)

Performs an explicit conversion from System.IntPtr to Factory2.

public static explicit operator Factory2(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

Factory2