I'm trying to create a WriteableBitmap from an Image on my hard drive using WriteableBitmapEx. I copied the code from the official page after adding the nuget package:
WriteableBitmap writeableBmp = new WriteableBitmap(0, 0).FromResource("Data/flower2.png");
but I get the error
'System.Windows.Media.Imaging.WriteableBitmap' does not contain a constructor that takes 2 arguments
I have added the PresentationCore.dll as I was told here WriteableBitmapEx in console application? and also a using statement for System.Windows.Media.Imaging.