Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.28 KB

d1155.md

File metadata and controls

37 lines (24 loc) · 1.28 KB
title ms.assetid description keywords topic_type api_name api_type ms.topic ms.date
D1155 FillOpacityMask Requires Aliased Rendering
f50c9557-2c6a-4f89-9168-88ab8bcce750
FillOpacityMask requires that the antialias mode be set to D2D1\_ANTIALIAS\_MODE\_ALIASED.
D1155 FillOpacityMask Requires Aliased Rendering Direct2D
apiref
D1155 FillOpacityMask Requires Aliased Rendering
NA
reference
05/31/2018

D1155: FillOpacityMask Requires Aliased Rendering

FillOpacityMask requires that the antialias mode be set to D2D1_ANTIALIAS_MODE_ALIASED.

 

Possible Causes

When an application calls ID2D1RenderTarget::FillOpacityMask, the antialias mode of the rendertarget involved should be D2D1_ANTIALIAS_MODE_ALIASED. A render target’s default behavior is to use antialiasing, so it is necessary to call ID2D1RenderTarget::SetAntialiasMode before filling an opacity mask.

Possible Fixes

Use ID2D1RenderTarget::SetAntialiasMode to ensure a rendertarget uses aliased rendering while filling an opacity mask. If subsequent operations require antialiasing, set the target’s antialias mode back to D2D1_ANTIALIAS_MODE_PER_PRIMITIVE. Ensure that the calls to ID2D1RenderTarget::SetAntialiasMode and ID2D1RenderTarget::FillOpacityMask are issued on the same target.