2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform...

34

Transcript of 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform...

Page 1: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.
Page 2: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Simon TaoProgram Manager, Windows Graphics

Introducing Win2D:DirectX-powered drawing in C#

2-631

Page 3: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Looking back: Direct2D and DirectWrite

Page 4: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

“How do I draw beautiful, high-performance 2D graphics without needing to be a expert in DirectX?”

Page 5: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Win2D brings the power of DirectX and the convenience of .NET to your Universal Windows apps.

Page 6: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

2D drawing library• 2D geometry, text, images, effects, etc…

For the Universal Windows Platform• Windows 10 and Windows/Phone 8.1• C++, C# and CLR languages

Available today on Nuget.org

Introducing Win2D

Page 7: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Demo: example gallery

Page 8: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Data visualizationCreative appsCustom controlsMuch more…

Introducing Win2D

Example scenarios

Page 9: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Why Win2D?

Page 10: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

It’s easy.

It’s fast.

It’s powerful.

It’s open source.

Why Win2D?

Page 11: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

It’s easy.

It’s fast.

It’s powerful.

It’s open source.

Why Win2D?

Page 12: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Demo: hello world

Page 13: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Let Win2D handle the heavy lifting• GPU pipeline and resource management• Integration with XAML and CoreWindow

Get the right level of control from Win2D• Layered API and intelligent defaults

Win2D is easy to use

Page 14: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

It’s easy.

It’s fast.

It’s powerful.

It’s open source.

Why Win2D?

Page 15: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Demo: performance scaling

Page 16: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Built entirely on DirectX• Foundational graphics layer in Windows• Significant platform investments since Windows 7

A thin layer on the native platform• Exclusively focused on 2D rendering• Very low overhead compared to Direct2D

Win2D is high performance

Page 17: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

It’s easy.

It’s fast.

It’s powerful.

It’s open source.

Why Win2D?

Page 18: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Built on Direct2D and DirectWrite• Powers industrial scale apps

Win2D is a comprehensive wrapper• Exposes almost every rendering-related

API in D2D and DWrite

Win2D has powerful functionality

Enterprise-grade technology

Page 19: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Win2D has powerful functionality

Image effects

Discrete transfer

Morphology

Gaussian blur

Page 20: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Demo: image effects

Page 21: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Win2D has powerful functionality

Turbulence effect

Source image

Output image

Displacement map effect

Source

Displacement

2D transform

effect

Page 22: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Demo: burning text

Page 23: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Easily convert between Win2D and DirectX objects• Win2D “wrapper” ↔ underlying DirectX

core

Mix your Win2D and DirectX code• Get access to any DirectX API• Leverage your existing codebase

Win2D has powerful functionality

First-class DirectX interoperability

Page 24: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Demo: Win2D teapot

Page 25: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Windows.UI.Composition• Use Win2D with the UI visual layer

Windows.Media.Effects• Use Win2D to process live video

Win2D has powerful functionality

Integration with video and composition

Page 26: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Demo: real-time video effects

Page 27: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

It’s easy.

It’s fast.

It’s powerful.

It’s open source.

Why Win2D?

Page 28: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Uses the Apache 2.0 LicenseDownload the source codeView our backlog

Win2D is open source

Everythingis availableon GitHub

Page 29: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Contact us on our blogFile bugs and ask questionsSubmit patches

Win2D is open source

We want to hear from you!

Page 30: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

1. Finish UWP support2. Reach API-stable V1

release3. Expose new Windows 10

featuresTell us what you want us to do!

Win2D is open source

What’s nextfor Win2D?

Page 31: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

It’s easy.

It’s fast.

It’s powerful.

It’s open source.

Why Win2D?

Page 32: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Win2D is DirectX for the rest of usBuild cool Win2D Windows apps todayHelp contribute to the future of Win2D

In conclusion

Page 33: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

Nuget: http://www.nuget.org/packages/Win2DDocumentation: http://microsoft.github.io/Win2DGitHub: https://github.com/Microsoft/Win2D | File an issueBlog: http://blogs.msdn.com/b/win2d | Email usWin2D Example Gallery: Windows Store | Windows Phone Store

Related sessions

Resources

# Title Speakers Time634 A Studio in the Palm of your Hand: Developing Audio and

Video Creation Apps for Windows 10Bala Sivakumar; Daniele Bosa; David Lorenzin; Jason Olson

Wed 3:30 – 4:30

672 Bring fluid, responsive, and highly scalable UI experiences to your app with the new Visual layer

James Clarke Thu 11:30 – 12:30

775 What’s New in Direct2D and DirectWrite for Windows 10 Anthony Hodsdon Fri 2:00 – 3:00

737 Use new Motion and Effects features to captivate users and truly bring your app to life

Nick Waggoner; Jeff Stall Fri 9:00 – 10:00

Page 34: 2D drawing library 2D geometry, text, images, effects, etc… For the Universal Windows Platform Windows 10 and Windows/Phone 8.1 C++, C# and CLR.

© 2015 Microsoft Corporation. All rights reserved.