Quantcast
Channel: Hilo Releases Rss Feed
Viewing all articles
Browse latest Browse all 20

Updated Release: XAML and DirectX Interop QuickStart (Dec 07, 2012)

$
0
0
This quickstart uses the SurfaceImageSource class, which allows you to compose DirectX graphics within a XAML element. If you need to display XAML in front of a full-screen DirectX swap chain you should use the SwapChainBackgroundPanel class.

Where to get the documentation

You will learn

  • How to perform interop between XAML and DirectX in a Windows Store app using the SurfaceImageSource class.
  • How to use DirectX to create and apply an affect to an image.
How to control a Direct2D image effect in a XAML-based Windows Store app.

Applies to

  • Windows Runtime for Windows 8
  • Visual C++ component extensions (C++/CX)
  • XAML
  • DirectX

Building and running the quickstart

Build the DirectXRipple project as you would build a standard project.
  1. On the menu bar, choose Build > Build Solution. The build step compiles the code and also packages it as a Windows Store app.
  2. After you build the project, you must deploy it. On the menu bar, choose Build > Deploy Solution.
  3. After you deploy the project, choose the DirectXRipple tile to run the app. Alternatively, in Microsoft Visual Studio, on the menu bar, choose Debug > Start Debugging. If you run the app in the debugger, Visual Studio deploys the project.

On the initial screen, choose the Load Image button. Use the file picker to select a JPG or PNG file, and then choose the Open button. The image is loaded and displayed on the screen. Choose any point on the image to observe the ripple effect. If you choose another point while the ripple is animating, the center of the ripple moves to that location. You can also drag the ripple while it's animating.

Viewing all articles
Browse latest Browse all 20

Latest Images

Trending Articles





Latest Images