IDWriteFactory::CreateCustomRenderingParams method

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

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;

Parameters

gamma

Type: FLOAT

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

enhancedContrast

Type: FLOAT

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

clearTypeLevel

Type: FLOAT

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

pixelGeometry

Type: DWRITE_PIXEL_GEOMETRY

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

Type: DWRITE_RENDERING_MODE

A value that represents the method (for example, ClearType natural quality) for rendering glyphs.

renderingParams [out]

Type: IDWriteRenderingParams**

When this method returns, contains an address of a pointer to the newly created rendering parameters object.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Header

Dwrite.h

Library

Dwrite.lib

DLL

Dwrite.dll

See also

IDWriteFactory

 

 

Send comments about this topic to Microsoft

Build date: 11/22/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.