问题描述
限时送ChatGPT账号..我正在开发一个 Windows 通用应用程序,我需要使用 Bitemap 但是
I'm developing a windows universal app and i need to work with Bitemap but
我似乎无法引用 System.Drawing,
i cannot seem to reference System.Drawing,
为什么 windows 通用应用程序不能引用这个 dll,我有什么替代方法?
Why cant windows universal app cannot reference this dll and what alternative do i have?
编辑关于如何在通用应用程序中使用我已经编写好的过滤库(取决于 system.drawing)的任何建议?
Edit Any suggestions on how can i use my already written filtering library (that depends on system.drawing) in a universal app?
Tnx
推荐答案
System.Drawing
是用于使用 GDI+ 的 .NET 命名空间.此技术不适用于 Windows 应用商店应用或通用 Windows 应用.请参阅适用于 Windows 应用的 .NET.
System.Drawing
is the .NET namespace for working with GDI+. This technology is not available for Windows Store apps or universal Windows Apps. See .NET for Windows apps.
您可以将 Win2D 项目用于 WinRT 包装器,可从 C# 使用 Direct2D 进行绘图/Windows 应用商店应用程序和 UWP 也支持 DirectWrite.请参阅 Win2D 简介:Windows 运行时中的 GPU 加速 2D 图形编程.
You can make use of the Win2D project for a WinRT wrapper usable from C# for drawing with Direct2D/DirectWrite which are also supported for Windows Store apps and UWP. See Introducing Win2D: GPU accelerated 2D graphics programming in the Windows Runtime.
您可以使用 SharpDX,它为 Direct2D、DirectWrite 和 Windows 成像组件 (WIC) 提供包装器.
You can make use of SharpDX which provides wrappers for Direct2D, DirectWrite, and the Windows Imaging Component (WIC).
简而言之:您不能使用在通用 Windows 应用程序中使用 System.Drawing
的现有库.
In short: You can't use an existing library that makes use of System.Drawing
in a universal Windows Application.
这篇关于带有 system.drawing 和可能的替代方案的 WINdows 通用应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论