Windows apps
Collapse the table of content
Expand the table of content
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.

IDWriteBitmapRenderTarget1::SetTextAntialiasMode method

Sets the current text antialiasing mode of the bitmap render target.

Syntax


virtual HRESULT SetTextAntialiasMode(
   DWRITE_TEXT_ANTIALIAS_MODE antialiasMode
) = 0;

Parameters

antialiasMode

Type: DWRITE_TEXT_ANTIALIAS_MODE

A DWRITE_TEXT_ANTIALIAS_MODE-typed value that specifies the antialiasing mode.

Return value

Type: HRESULT

Returns S_OK if successful, or E_INVALIDARG if the argument is not valid.

Remarks

The antialiasing mode of a newly-created bitmap render target defaults to DWRITE_TEXT_ANTIALIAS_MODE_CLEARTYPE. An app can change the antialiasing mode by calling SetTextAntialiasMode. For example, an app might specify DWRITE_TEXT_ANTIALIAS_MODE_GRAYSCALE for grayscale antialiasing when it renders text onto a transparent bitmap.

Requirements

Minimum supported client

Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

Dwrite_1.h

Library

Dwrite.lib

DLL

Dwrite.dll

See also

IDWriteBitmapRenderTarget1

 

 

Show:
© 2017 Microsoft