简体   繁体   English

在Windows 8 / RT应用中处理位图

[英]Handling Bitmaps in Windows 8/RT app

I have previously created a C# console application for manipulating Images. 我以前已经创建了一个用于处理图像的C#控制台应用程序。 Now I'd like to port it over to a Windows 8/RT app. 现在,我想将其移植到Windows 8 / RT应用程序。 Unfortunately I can't seem to take advantage of following packages: 不幸的是,我似乎无法利用以下软件包:

using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;

Double-Clicking on the ".NET for Windows Store apps" reference, they do seem to still exist. 双击“ .NET for Windows Store应用程序”参考,它们似乎仍然存在。 Do I have to use some other classes for Image handling, or is it possible to get my old code working as is? 我是否必须使用其他一些类来处理图像,还是可以使旧代码按原样工作?

在现代UI应用程序中禁止使用绘图名称空间,有一些第三方库实现了API的一部分( 像这样 ),但是您想要(操作位图)的最佳库是WriteableBitmapEx ,您唯一的其他解决方案将是Direct2D或,如果您感到幸运,可以使用HTML5和JavaScript的Canvas元素。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM