The type or namespace name ‘Imaging’ does not exist in the namespace ‘System.Windows.Media’ (are you missing an assembly reference?)

The type or namespace name ‘BitmapSource’ could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name ‘TransformedBitmap’ could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name ‘ScaleTransform’ could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name ‘CroppedBitmap’ could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name ‘BitmapEncoder’ could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name ‘BitmapMetadata’ could not be found (are you missing a using directive or an assembly reference?)

Follow the below steps
Step:-1 Right click on your solution explorer
Step:-2 Click on Add Reference
Step:-3 Go to .NET Tab
Step:-4 Select PresentationCore
Step:-5 Click on OK
Step:-6 Now Compile your project

About the Author

avatar