I read How to: Encode and Decode a TIFF Image and copied the code
// Open a Stream and decode a TIFF image
Stream imageStreamSource = new FileStream("tulipfarm.tif", FileMode.Open,
FileAccess.Read, FileShare.Read);
TiffBitmapDecoder decoder = new TiffBitmapDecoder(imageStreamSource,
BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.Default);
BitmapSource bitmapSource = decoder.Frames[0];
// Draw the Image
Image myImage = new Image();
myImage.Source = bitmapSource;
myImage.Stretch = Stretch.None;
myImage.Margin = new Thickness(20);
into a console app in Visual Studio 2017. I added a reference to PresentationCore per https://stackoverflow.com/a/50192029/9044571 and that allowed me to add
using System.Windows.Media.Imaging;
But now I am getting an error (Error CS0144 Cannot create an instance of the abstract class or interface 'Image') associated with the line
Image myImage = new Image();
How might I fix this? Could the problem be that I am doing this from a console app?