IDWriteTextLayout::SetDrawingEffect method (dwrite.h)
Sets the application-defined drawing effect.
HRESULT SetDrawingEffect( IUnknown *drawingEffect, DWRITE_TEXT_RANGE textRange );
Application-defined drawing effects that apply to the range. This data object will be passed back to the application's drawing callbacks for final rendering.
The text range to which this change applies.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
An ID2D1Brush, such as a color or gradient brush, can be set as a drawing effect if you are using the ID2D1RenderTarget::DrawTextLayout to draw text and that brush will be used to draw the specified range of text.
This drawing effect is associated with the specified range and will be passed back to the application by way of the callback when the range is drawn at drawing time.
|Minimum supported client||Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]|