From ee42d75fa2119be268794bfd7bf1fc4da8bab8b4 Mon Sep 17 00:00:00 2001 From: ahmed walid Date: Sat, 9 Sep 2023 03:20:41 +0200 Subject: [PATCH 1/2] Fix outdated remarks/attributes about Composition support for effects --- winrt/docsrc/CanvasDrawingSession.xml | 14 +++++----- winrt/docsrc/effects/BlendEffect.xml | 28 +++++++++++++------ winrt/docsrc/effects/LinearTransferEffect.xml | 3 +- 3 files changed, 29 insertions(+), 16 deletions(-) diff --git a/winrt/docsrc/CanvasDrawingSession.xml b/winrt/docsrc/CanvasDrawingSession.xml index ae60114d3..a96223d00 100644 --- a/winrt/docsrc/CanvasDrawingSession.xml +++ b/winrt/docsrc/CanvasDrawingSession.xml @@ -754,12 +754,12 @@ Licensed under the MIT License. See LICENSE.txt in the project root for license The composite mode used for the effect. -

The equations listed in enum descriptions use these elements: - O = Output - S = Source - SA = Source Alpha - D = Destination - DA = Destination Alpha

+

The equations listed in enum descriptions use these elements:

+

O = Output

+

S = Source

+

SA = Source Alpha

+

D = Destination

+

DA = Destination Alpha

@@ -796,7 +796,7 @@ Licensed under the MIT License. See LICENSE.txt in the project root for license Region of the source bitmap. Equation: O = S. - + Union of source and destination bitmaps with no destination override. Equation: O = S (only where source exists). diff --git a/winrt/docsrc/effects/BlendEffect.xml b/winrt/docsrc/effects/BlendEffect.xml index d892f9c27..c162251bd 100644 --- a/winrt/docsrc/effects/BlendEffect.xml +++ b/winrt/docsrc/effects/BlendEffect.xml @@ -127,17 +127,29 @@ Licensed under the MIT License. See LICENSE.txt in the project root for license Exclusion blend mode. - - Hue blend mode. + + +

Hue blend mode.

+

This blend mode is supported by Windows.UI.Composition since Windows 10 build 18362 (May 2019 Update).

+
- - Saturation blend mode. + + +

Saturation blend mode.

+

This blend mode is supported by Windows.UI.Composition since Windows 10 build 18362 (May 2019 Update).

+
- - Color blend mode. + + +

Color blend mode.

+

This blend mode is supported by Windows.UI.Composition since Windows 10 build 18362 (May 2019 Update).

+
- - Luminosity blend mode. + + +

Luminosity blend mode.

+

This blend mode is supported by Windows.UI.Composition since Windows 10 build 18362 (May 2019 Update).

+
Subtract blend mode. diff --git a/winrt/docsrc/effects/LinearTransferEffect.xml b/winrt/docsrc/effects/LinearTransferEffect.xml index 25fe75a38..2d93b7bf9 100644 --- a/winrt/docsrc/effects/LinearTransferEffect.xml +++ b/winrt/docsrc/effects/LinearTransferEffect.xml @@ -11,11 +11,12 @@ Licensed under the MIT License. See LICENSE.txt in the project root for license - + Alters the colors of an image by applying a per-channel linear transfer function. +

This effect is supported by Windows.UI.Composition since Windows 10 build 14393 (Anniversary Update).

The linear transfer function is evaluated separately for each color channel:

result = (input * slope) + offset

From ac2dda2281c791d13687991ed0aa8145cd7f4120 Mon Sep 17 00:00:00 2001 From: ahmed walid Date: Sat, 9 Sep 2023 15:58:18 +0200 Subject: [PATCH 2/2] Use list for CanvasComposite elements remark --- winrt/docsrc/CanvasDrawingSession.xml | 12 +++++++----- winrt/docsrc/effects/BlendEffect.xml | 8 ++++---- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/winrt/docsrc/CanvasDrawingSession.xml b/winrt/docsrc/CanvasDrawingSession.xml index a96223d00..2792ee410 100644 --- a/winrt/docsrc/CanvasDrawingSession.xml +++ b/winrt/docsrc/CanvasDrawingSession.xml @@ -755,11 +755,13 @@ Licensed under the MIT License. See LICENSE.txt in the project root for license

The composite mode used for the effect.

The equations listed in enum descriptions use these elements:

-

O = Output

-

S = Source

-

SA = Source Alpha

-

D = Destination

-

DA = Destination Alpha

+
    +
  • O = Output
  • +
  • S = Source
  • +
  • SA = Source Alpha
  • +
  • D = Destination
  • +
  • DA = Destination Alpha
  • +
diff --git a/winrt/docsrc/effects/BlendEffect.xml b/winrt/docsrc/effects/BlendEffect.xml index c162251bd..bccd59aa6 100644 --- a/winrt/docsrc/effects/BlendEffect.xml +++ b/winrt/docsrc/effects/BlendEffect.xml @@ -129,25 +129,25 @@ Licensed under the MIT License. See LICENSE.txt in the project root for license -

Hue blend mode.

+

Hue blend mode.

This blend mode is supported by Windows.UI.Composition since Windows 10 build 18362 (May 2019 Update).

-

Saturation blend mode.

+

Saturation blend mode.

This blend mode is supported by Windows.UI.Composition since Windows 10 build 18362 (May 2019 Update).

-

Color blend mode.

+

Color blend mode.

This blend mode is supported by Windows.UI.Composition since Windows 10 build 18362 (May 2019 Update).

-

Luminosity blend mode.

+

Luminosity blend mode.

This blend mode is supported by Windows.UI.Composition since Windows 10 build 18362 (May 2019 Update).