33 lines
693 B
C#
33 lines
693 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace TiJianJieGuo
|
|
{
|
|
public partial class frm_img_show : Form
|
|
{
|
|
public frm_img_show()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void frm_img_show_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
public void setimg(Bitmap bm)
|
|
{
|
|
this.Width = bm.Width + 40;
|
|
this.Height = bm.Height + 60;
|
|
pic_cc.Width = bm.Width;
|
|
pic_cc.Height = bm.Height;
|
|
pic_cc.Image = bm;
|
|
}
|
|
}
|
|
}
|