You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hub/apps/develop/composition/composition-brushes.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,16 +36,16 @@ This overview assumes that you are familiar with the structure of a basic Compos
36
36
37
37
A [CompositionBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionbrush) "paints" an area with its output. Different brushes have different types of output. Some brushes paint an area with a solid color, others with a gradient, image, custom drawing, or effect. There are also specialized brushes that modify the behavior of other brushes. For example, opacity mask can be used to control which area is painted by a CompositionBrush, or a nine-grid can be used to control the stretch applied to a CompositionBrush when painting an area. CompositionBrush can be of one of the following types:
|[CompositionColorBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorbrush)|Paints an area with a solid color |Windows 10, version 1511 (SDK 10586)|
42
-
|[CompositionSurfaceBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush)|Paints an area with the contents of an [ICompositionSurface](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.icompositionsurface)|Windows 10, version 1511 (SDK 10586)|
43
-
|[CompositionEffectBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneffectbrush)|Paints an area with the contents of a composition effect |Windows 10, version 1511 (SDK 10586)|
44
-
|[CompositionMaskBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionmaskbrush) |Paints a visual with a CompositionBrush with an opacity mask |Windows 10, version 1607 (SDK 14393)
45
-
|[CompositionNineGridBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush) |Paints an area with a CompositionBrush using a NineGrid stretch |Windows 10, version 1607 (SDK 14393)
46
-
|[CompositionLinearGradientBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionlineargradientbrush)|Paints an area with a linear gradient |Windows 10, version 1709 (SDK 16299)
47
-
|[CompositionRadialGradientBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionradialgradientbrush)|Paints an area with a radial gradient |Windows 10, version 1903 (Insider Preview SDK)
48
-
|[CompositionBackdropBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionbackdropbrush) |Paints an area by sampling background pixels from either the application or pixels directly behind the application's window on desktop. Used as an input to another CompositionBrush like a CompositionEffectBrush | Windows 10, version 1607 (SDK 14393)
|[CompositionColorBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorbrush)|Paints an area with a solid color |
42
+
|[CompositionSurfaceBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush)|Paints an area with the contents of an [ICompositionSurface](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.icompositionsurface)|
43
+
|[CompositionEffectBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneffectbrush)|Paints an area with the contents of a composition effect |
44
+
|[CompositionMaskBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionmaskbrush)|Paints a visual with a CompositionBrush with an opacity mask |
45
+
|[CompositionNineGridBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionninegridbrush)|Paints an area with a CompositionBrush using a NineGrid stretch |
46
+
|[CompositionLinearGradientBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionlineargradientbrush)|Paints an area with a linear gradient |
47
+
|[CompositionRadialGradientBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionradialgradientbrush)|Paints an area with a radial gradient |
48
+
|[CompositionBackdropBrush](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionbackdropbrush)|Paints an area by sampling background pixels from either the application or pixels directly behind the application's window on desktop. Used as an input to another CompositionBrush like a CompositionEffectBrush |
Copy file name to clipboardExpand all lines: hub/apps/develop/composition/composition-native-interop.md
-229Lines changed: 0 additions & 229 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -538,232 +538,3 @@ int __stdcall wWinMain(HINSTANCE, HINSTANCE, PWSTR, int)
538
538
}
539
539
```
540
540
541
-
## C++/CX usage example
542
-
543
-
> [!NOTE]
544
-
> This code example exists to help you maintain your C++/CX application. But we recommend that you use [C++/WinRT](../cpp-and-winrt-apis/intro-to-using-cpp-with-winrt.md) for new applications. C++/WinRT is an entirely standard modern C++17 language projection for Windows Runtime (WinRT) APIs, implemented as a header-file-based library, and designed to provide you with first-class access to the modern Windows API.
545
-
546
-
The C++/CX code example below omits the DirectWrite and Direct2D parts of the example and remains primarily useful as a migration reference for older codebases.
Copy file name to clipboardExpand all lines: hub/apps/develop/composition/composition-visual-tree.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,10 @@ There are several visual types that make up the visual tree structure plus a bas
16
16
-[**Visual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual) – base object, the majority of the properties are here, and inherited by the other Visual objects.
17
17
-[**ContainerVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.containervisual) – derives from [**Visual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.visual), and adds the ability to create children.
18
18
-[**SpriteVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.spritevisual) – derives from [**ContainerVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.containervisual). Has the ability to associate a brush so that the Visual can render pixels including images, effects, or a solid color.
19
-
-[**LayerVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.layervisual) – derives from [**ContainerVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.containervisual). Children of the visual are flattened into a single layer.<br/>(_Introduced in Windows 10, version 1607, SDK 14393._)
20
-
-[**ShapeVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.shapevisual) – derives from [**ContainerVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.containervisual). A visual tree node that is the root of a CompositionShape.<br/>(_Introduced in Windows 10, version 1803, SDK 17134._)
21
-
-[**RedirectVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.redirectvisual) – derives from [**ContainerVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.containervisual). The visual gets its content from another visual.<br/>(_Introduced in Windows 10, version 1809, SDK 17763._)
22
-
-[**SceneVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.scenes.scenevisual) – derives from [**ContainerVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.containervisual). A container visual for the nodes of a 3D scene.<br/>(_Introduced in Windows 10, version 1903, SDK 18362._)
19
+
-[**LayerVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.layervisual) – derives from [**ContainerVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.containervisual). Children of the visual are flattened into a single layer.
20
+
-[**ShapeVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.shapevisual) – derives from [**ContainerVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.containervisual). A visual tree node that is the root of a CompositionShape.
21
+
-[**RedirectVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.redirectvisual) – derives from [**ContainerVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.containervisual). The visual gets its content from another visual.
22
+
-[**SceneVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.scenes.scenevisual) – derives from [**ContainerVisual**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.containervisual). A container visual for the nodes of a 3D scene.
23
23
24
24
You can apply content and effects to SpriteVisuals using the [**CompositionBrush**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionbrush) and its subclasses including the [**CompositionColorBrush**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioncolorbrush), [**CompositionSurfaceBrush**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositionsurfacebrush) and [**CompositionEffectBrush**](/windows/windows-app-sdk/api/winrt/microsoft.ui.composition.compositioneffectbrush). To learn more about brushes see [**CompositionBrush Overview**](./composition-brushes.md).
0 commit comments