找不到位图

时间:2019-01-12 11:12:59

标签: c# xaml

我正在使用XAML创建图形界面,并且位图类型存在问题。尽管创建了Bitmap对象,但使用System.Drawing却令人惊讶地毫无用处。

using System;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Windows;
using Microsoft.Win32;

namespace Cryptography
{
    /// <summary>
    /// Logika interakcji dla klasy MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private int NextStepCounter { get; set; }
        private Bitmap LoadedBitmap { get; set; }
        private Bitmap FirstShareBitmap { get; set; }
        private Bitmap SecondShareBitmap { get; set; }
        private Bitmap ThirdShareBitmap { get; set; }
        private Bitmap FourthShareBitmap { get; set; }
        private Bitmap LoadedFirstShareBitmap { get; set; }
        private Bitmap LoadedSecondShareBitmap { get; set; }
        private Bitmap LoadedThirdShareBitmap { get; set; }
        private Bitmap LoadedFourthShareBitmap { get; set; }
        private Bitmap OverlaidSharesBitmap { get; set; }

enter image description here

1 个答案:

答案 0 :(得分:0)

您需要从Nuget软件包安装System.Drawing.Common