[Sample Of May 5th] How to apply an "Opacity Mask" to an image in Windows Store apps using Direct2D

  Sample Download : http://code.msdn.microsoft.com/How-to-apply-an-Opacity-09c2a28c This code sample will show you how to apply an “Opacity Mask” to an image in Windows Store apps using Direct2D . Note: This sample is based on James Dailey’s blog article: http://blogs.msdn.com/b/wsdevsol/archive/2014/03/20/how-to-apply-an-opacity-mask-to-an-image-by-mixing-xaml-and-direct2d.aspx   You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code…

1

Windows 8 Graphics - Fun with gradients

This post is mainly for fun. You will see part of the code (such as button’s style) in the next version of Story Creator. But this post will go beyond Story Creator. We’ll explore Windows 8’s gradient brushes, including XAML, HTML, and DirectX. In this post: Why do we need gradients Gradients in XAML (related…

2

[Sample of Feb 22nd] Using Direct2D for Server-Side Rendering with ASP.NET

  Sample Download: http://code.msdn.microsoft.com/CSD2DServerSideRendering-2d099ab6  Today’s code sample demonstrates how to use Direct2D to render images in ASP.NET web applications.  Some server applications need to render images and send back the generated bitmaps to users connected through web clients.  GDI+ and System.Drawing are not supported in a service or web application.  Direct2D is the appropriate technology…