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

时间:2014-02-28 15:00:36

标签: c# asp.net .net itextsharp tiff

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

我有一个大约4MB的大TIFF图像,它有瓷砖。之前我使用过iTextSharp,但它不支持tile错误。

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

enter image description here

仅显示System.Windows.Presentation

也可以使用.Net内置的Framework类中的任何一个已处理的平铺TIFF到pdf,而不使用像LibTIFF这样的第三方库吗?

1 个答案:

答案 0 :(得分:9)

PresentationCore WPF 的一部分,它是.NET Framework内置功能。您应该能够轻松地为MVC和经典ASP.NET for .NET Framework v3.5或更高版本添加它。

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

enter image description here