public static  string programPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
       
        private void button1_Click(object sender, EventArgs e)
        {
            string filename = programPath + @"\未命名.jpg";
          
            Bitmap bmp = new Bitmap(filename);

 

            this.pictureBox1.Image = System.Drawing.Image.FromHbitmap(bmp.GetHbitmap());
        }

相关文章:

  • 2022-01-28
  • 2022-12-23
  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2021-09-10
  • 2021-08-14
  • 2021-08-25
  • 2022-12-23
相关资源
相似解决方案