gpt4 book ai didi

c# - 在 Web 项目中添加 PresentationCore 程序集引用

转载 作者:行者123 更新时间:2023-11-30 13:37:35 24 4
gpt4 key购买 nike

看完Using LibTiff from C# (to access tiled TIFF images)我决定尝试使用 .Net 内置框架类 TiffBitmapDecoder从平铺的 TIFF 图像生成 pdf。

我得到了一个大约 4MB 的大 TIFF 图像,其中有图 block 。我之前使用过 iTextSharp,但它不支持 tiles 错误。

但是如何在我的 Web 项目引用中添加 PresentationCore.dll 程序集?我无法在 Add Reference dialog 中看到。我使用 .Net 4.0 ASP.Net webform 项目

enter image description here

它只显示 System.Windows.Presentation

是否有人使用 .Net 内置的框架类将平铺 TIFF 处理为 pdf,而不使用像 LibTIFF 这样的第 3 方库?

最佳答案

PresentationCoreWPF 的一部分,后者是 .NET Framework 的内置功能。对于 MVC 和适用于 .NET Framework v3.5 或更高版本的经典 ASP.NET,您应该能够轻松地添加它。

请注意,PresentationCore.dll 使用的程序集名称是普通的 PresentationCore。它没有任何前缀(例如 System.PresentationCore、Microsoft.PresentationCore)。也许这就是您在框架程序集列表中找不到它的原因。

enter image description here

关于c# - 在 Web 项目中添加 PresentationCore 程序集引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22098595/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com