Grayscale effect

Converts an image to monochromatic gray.

Grayscale uses the color matrix effect to convert to grayscale, using the following matrix:

Conversion matrix

The CLSID for this effect is CLSID_D2D1Grayscale.

Example Image

Example of effect output

Effect Properties

This effect has no properties.

Requirements

Minimum supported clientWindows 10 [desktop apps | Windows Store apps]
Minimum supported serverWindows 10 [desktop apps | Windows Store apps]
Headerd2d1effects_2.h
Libraryd2d1.lib, dxguid.lib

 

Related topics

ID2D1Effect

 

 

Show: