How to crop an image in a Windows Store app

In a typical .NET WPF application, we can use the System.Windows.Media.Imaging.CroppedBitmap class to crop a bitmap, but in a Windows Store app, this class is not available. In Windows Store app, you can crop a bitmap by using a BitmapTransform class while reading the bitmap in a BitmapDecoder. In this video, we will demonstrate how to crop an image in a Windows Store app.

Viewer comments

 
 
 
 
 
Akelitz (684 Days ago)
 
The same for me! Where the correct sample code is?
scotdwg (686 Days ago)
 
The sample code only contains a VS 2010 project with that doesn't even use WPF. Am I missing something?
 
 
Close

Please create a nickname that we can associate with all ratings and comments. You will only need to do this once.