private void btnDefault_Click(object sender, EventArgs e) { map = Bildverarbeitung.Load_Image(DefaultVariables.GetProjectPath() + "\\Picture\\" + pictureName); this.pbMain.Image = map; this.Refresh(); }
public Form1() { InitializeComponent(); map = Bildverarbeitung.Load_Image(DefaultVariables.GetProjectPath() + "Picture\\" + pictureName); this.pbMain.Size = new System.Drawing.Size(map.Size.Width, map.Size.Height); this.pbMain.Image = map; this.pbMain.Refresh(); }