Я получаю следующую ошибку времени компиляции -:
The type or namespace name 'Bitmap' could not be found (are you missing a using directive or an assembly reference?)
Вот мой код:
BitmapImage img = new BitmapImage();