ID2D1SvgGlyphStyle::SetFill method (d2d1_3.h)

Provides values to an SVG glyph for fill.

Syntax

HRESULT SetFill(
  [in, optional] ID2D1Brush *brush
);

Parameters

[in, optional] brush

Type: ID2D1Brush*

Describes how the area is painted. A null brush will cause the context-fill value to come from the defaultFillBrush. If the defaultFillBrush is also null, the context-fill value will be 'none'. To set the ‘context-fill’ value, this method uses the provided brush with its opacity set to 1. To set the ‘context-fill-opacity’ value, this method uses the opacity of the provided brush.

Return value

Type: HRESULT

This method returns an HRESULT success or error code.

Requirements

Requirement Value
Target Platform Windows
Header d2d1_3.h
DLL D2d1.dll

See also

ID2D1SvgGlyphStyle