Acrylic imitation in a Win32 application

Microsoft recently announced Acrylic, a glass material in Fluent Design . It is presented only as XAML / UWP, but it looks very similar to glass, except that it can be arbitrarily painted and can be used in flyover control applications, as well as for stand-alone application windows.

The β€œrecipe” shows that it is implemented in XAML itself without being exposed to a wider system.

Microsoft's recipe for creating acrylic: background, blue, blend, hue, noise

The related SO question confirms this (it is devoid of specific, technical answers, but implies that acrylic is not available through WinAPI, like glass).

- Win32? ? ( API- API- Win10 Fall Update, Win7?) Win32, DirectX , ?

+4
2

@zett42, , DirectComposition.

: Vista Microsoft Desktop Window Manager, DWM, . DWM , DWM. , , 3D-, .., , .

DWM MIL ( ), , , API- . , WPF, , MIL. , DWM WPF, , , , , . - Microsoft MIL, WPF, .

Windows 8. Microsoft "Metro" ( "Modern", "UWP" ). API DirectComposition. API Win32, DWM. DWM, MIL, , , MS MIL DC. , , , , DWM , .

- MS DirectComposition, IDCompositionDevice3. gaussan blur, , . , , . , , , .

- Windows: DirectComposition. , "", , "" . :

  • . QueryInterface IDCompositionDevice3.
  • SetEffect IDCompositionVisual3.

, , . , API, DWM, SetEffect Visual, . - , API, UWP, Acyllic-.

, GetWindowCompositionAttribute. , WCA_VISUAL_OWNER.

+4

, Win32 API , , , .

Direct Composition, , WS_EX_NOREDIRECTIONBITMAP , " Windows". , , XAML Direct Composition, .

+2

Source: https://habr.com/ru/post/1677248/


All Articles