CroppedBitmap,BitmapDecoder-找不到命名空间-Visual Studio 2010 [英] CroppedBitmap, BitmapDecoder - namespace could not be found - visual studio 2010

查看:77
本文介绍了CroppedBitmap,BitmapDecoder-找不到命名空间-Visual Studio 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

德语版本:


Ich benutze Visual Studio 2010 Ultimate mit SP1. .net Framework 4.5和Windows Phone SDK 7.1安装程序.我的视觉工程Visual-C#Window-Phone-Anwendung.

屏幕快照zu machen(das funktioniert)和zu speichern.变种人的名字. Ich Versuche死于CroppedBitmap或BitmapDecoder. Beide Klasse werden trotz使用-Angabe nicht erkannt.义不容辞 可以吗? Kann ich sie irgendwie Implementieren?

英文版:

我将Visual Studio 2010 Ultimate与SP1一起使用. Ich已安装.net Framework 4.5和Windows Phone SDK 7.1.我的项目是Visual-C#Windows Phone应用程序.

我尝试将屏幕截图保存起来.但在此之前,我要修剪图像.我想使用CroppedBitmap或BitmapDecoder.但是我都不能使用.我尝试了使用陈述,但是没有用.我可以实现CroppedBitmap和BitmapDecoder类吗? 还是它们不可用.

解决方案

Windows Phone SDK不包含这些类.我建议您将WriteableBitmap与WriteableBitmapEx扩展名配合使用,该扩展名会添加Crop函数.看看我在此线程中与WriteableBitmapEx有关的帖子: 解决方案

The Windows Phone SDK doesn't include those classes. I recommend that you use WriteableBitmap along with the WriteableBitmapEx extension, which adds a Crop function. Look at my post in this thread concerning WriteableBitmapEx: http://social.msdn.microsoft.com/Forums/en-US/wpdevelop/thread/daa57f86-f700-45c2-8e68-51a129b35407#f3f4b8e4-2a74-42ed-94ba-9267088f690c


这篇关于CroppedBitmap,BitmapDecoder-找不到命名空间-Visual Studio 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆