IDWriteFactory::CreateCustomRenderingParams Method

Creates a rendering parameters object with the specified properties.

Syntax

virtual HRESULT CreateCustomRenderingParams(
  FLOAT  gamma,
  FLOAT  enhancedContrast,
  FLOAT  clearTypeLevel,
  DWRITE_PIXEL_GEOMETRY  pixelGeometry,
  DWRITE_RENDERING_MODE  renderingMode,
  [out]  IDWriteRenderingParams ** renderingParams
) = 0;

Parameter

  • gamma
    The gamma level to be set for the new rendering parameters object.

  • enhancedContrast
    The enhanced contrast level to be set for the new rendering parameters object.

  • clearTypeLevel
    The ClearType level to be set for the new rendering parameters object.

  • 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
    A value that represents the method (for example, ClearType natural quality) for rendering glyphs.

  • renderingParams [out]
    When this method returns, contains an address of a pointer to the newly created rendering parameters object.

Rückgabewert

Ist Methode erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.

Anforderungen

Header

Dwrite.h

Bibliothek

Dwrite.lib

DLL

Dwrite.dll

Siehe auch

IDWriteFactory