You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 30, 2019. It is now read-only.
/// <p>This method is called on a glyph run to translate it in to multiple color glyph runs.</p>
37
+
/// </summary>
38
+
/// <param name = "baselineOriginX"><dd> <p>The horizontal baseline origin of the original glyph run.</p> </dd></param>
39
+
/// <param name = "baselineOriginY"><dd> <p>The vertical baseline origin of the original glyph run.</p> </dd></param>
40
+
/// <param name = "glyphRun"><dd> <p>Original glyph run containing monochrome glyph IDs.</p> </dd></param>
41
+
/// <param name = "glyphRunDescription"><dd> <p>Optional glyph run description.</p> </dd></param>
42
+
/// <param name = "measuringMode"><dd> <p>Measuring mode used to compute glyph positions if the run contains color glyphs.</p> </dd></param>
43
+
/// <param name = "worldToDeviceTransform"><dd> <p> World transform multiplied by any DPI scaling. This is needed to compute glyph positions if the run contains color glyphs and the measuring mode is not <strong>DWRITE_MEASURING_MODE_NATURAL</strong>. If this parameter is <strong><c>null</c></strong>, and identity transform is assumed. </p> </dd></param>
44
+
/// <param name = "colorPaletteIndex"><dd> <p> Zero-based index of the color palette to use. Valid indices are less than the number of palettes in the font, as returned by <strong>IDWriteFontFace2::GetColorPaletteCount</strong>. </p> </dd></param>
45
+
/// <param name = "colorLayers"><dd> <p> If the original glyph run contains color glyphs, this parameter receives a reference to an <strong><see cref = "SharpDX.DirectWrite.ColorGlyphRunEnumerator"/></strong> interface. The client uses the returned interface to get information about glyph runs and associated colors to render instead of the original glyph run. If the original glyph run does not contain color glyphs, this method returns <strong>DWRITE_E_NOCOLOR</strong> and the output reference is <strong><c>null</c></strong>. </p> </dd></param>
46
+
/// <returns><p>If this method succeeds, it returns <strong><see cref = "SharpDX.Result.Ok"/></strong>. Otherwise, it returns an <strong><see cref = "SharpDX.Result"/></strong> error code.</p></returns>
47
+
/// <remarks>
48
+
/// <p> If the code calls this method with a glyph run that contains no color information, the method returns <strong>DWRITE_E_NOCOLOR</strong> to let the application know that it can just draw the original glyph run. If the glyph run contains color information, the function returns an object that can be enumerated through to expose runs and associated colors. The application then calls <strong>DrawGlyphRun</strong> with each of the returned glyph runs and foreground colors. </p>
/// <p>This method is called on a glyph run to translate it in to multiple color glyph runs.</p>
62
+
/// </summary>
63
+
/// <param name = "baselineOriginX"><dd> <p>The horizontal baseline origin of the original glyph run.</p> </dd></param>
64
+
/// <param name = "baselineOriginY"><dd> <p>The vertical baseline origin of the original glyph run.</p> </dd></param>
65
+
/// <param name = "glyphRun"><dd> <p>Original glyph run containing monochrome glyph IDs.</p> </dd></param>
66
+
/// <param name = "glyphRunDescription"><dd> <p>Optional glyph run description.</p> </dd></param>
67
+
/// <param name = "measuringMode"><dd> <p>Measuring mode used to compute glyph positions if the run contains color glyphs.</p> </dd></param>
68
+
/// <param name = "worldToDeviceTransform"><dd> <p> World transform multiplied by any DPI scaling. This is needed to compute glyph positions if the run contains color glyphs and the measuring mode is not <strong>DWRITE_MEASURING_MODE_NATURAL</strong>. If this parameter is <strong><c>null</c></strong>, and identity transform is assumed. </p> </dd></param>
69
+
/// <param name = "colorPaletteIndex"><dd> <p> Zero-based index of the color palette to use. Valid indices are less than the number of palettes in the font, as returned by <strong>IDWriteFontFace2::GetColorPaletteCount</strong>. </p> </dd></param>
70
+
/// <returns><dd> <p> If the original glyph run contains color glyphs, this parameter receives a reference to an <strong><see cref = "SharpDX.DirectWrite.ColorGlyphRunEnumerator"/></strong> interface. The client uses the returned interface to get information about glyph runs and associated colors to render instead of the original glyph run. If the original glyph run does not contain color glyphs, this method returns <strong>DWRITE_E_NOCOLOR</strong> and the output reference is <strong><c>null</c></strong>. </p> </dd></returns>
71
+
/// <remarks>
72
+
/// <p> If the code calls this method with a glyph run that contains no color information, the method returns <strong>DWRITE_E_NOCOLOR</strong> to let the application know that it can just draw the original glyph run. If the glyph run contains color information, the function returns an object that can be enumerated through to expose runs and associated colors. The application then calls <strong>DrawGlyphRun</strong> with each of the returned glyph runs and foreground colors. </p>
0 commit comments