Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add PresentationCore assembly reference in web project

After reading Using LibTiff from C# (to access tiled TIFF images) I decided to try to use .Net built in framework class TiffBitmapDecoder to generate the pdf from tiled TIFF image.

I got a big TIFF image around 4MB, which has tiles. I used iTextSharp before but it is not supporting tiles error.

But how do I add the PresentationCore.dll assembly in my web project reference? I could not able to see in Add Reference dialog. I use .Net 4.0 ASP.Net webform project

enter image description here

It shows only System.Windows.Presentation

Also do any one processed tiled TIFF to pdf with .Net built in Framework classes with out using 3rd party libraries like LibTIFF?

like image 781
Billa Avatar asked Feb 28 '14 15:02

Billa


1 Answers

PresentationCore is a part of WPF, which is a .NET Framework built-in feature. You should be able to add it easily for both MVC and classic ASP.NET for .NET Framework v3.5 or later.

Please note that the assembly name used by PresentationCore.dll is plain PresentationCore. It does not have any prefixes (e.g. System.PresentationCore, Microsoft.PresentationCore). Perhaps this is the reason you're having trouble finding it on the Framework Assemblies list.

enter image description here

like image 122
Aoi Karasu Avatar answered Oct 01 '22 13:10

Aoi Karasu