예제 #1
0
        /// <summary>
        /// 重置图像.
        /// </summary>
        private void btnReset_Click(object sender, EventArgs e)
        {
            imgManipulator.Dispose();

            // 从本地文件加载位图.
            Bitmap img = new Bitmap("OneCodeIcon.png");

            // 初始化 imgManipulator.
            imgManipulator = new ImageManipulator(img);

            // 重绘 pnlImage.
            imgManipulator.DrawControl(this.pnlImage, adjustment, pen);
        }
예제 #2
0
파일: MainForm.cs 프로젝트: thexur/1code
        /// <summary>
        /// Reset the bmpEx.
        /// </summary>
        private void btnReset_Click(object sender, EventArgs e)
        {
            // Dispose the bmpEx.
            imgManipulator.Dispose();

            // Load a bitmap from a local file.
            Bitmap img = new Bitmap("OneCodeIcon.png");

            // Initialize the bmpEx.
            imgManipulator = new ImageManipulator(img);

            // Redraw the pnlImage.
            imgManipulator.DrawControl(this.pnlImage, adjustment, pen);
        }
예제 #3
0
        public MainForm()
        {
            InitializeComponent();

            // 从本地文件加载位图.
            Bitmap img = new Bitmap("OneCodeIcon.png");

            // 初始化 imgManipulator.
            imgManipulator = new ImageManipulator(img);

            // 向下拉框中添加所有的InterpolationMode.
            for (int i = 0; i <= 7; i++)
            {
                cmbInterpolationMode.Items.Add((InterpolationMode)(i));
            }

            cmbInterpolationMode.SelectedIndex = 0;
        }
예제 #4
0
        public MainForm()
        {
            InitializeComponent();

            // 从本地文件加载位图.
            Bitmap img = new Bitmap("OneCodeIcon.png");

            // 初始化 imgManipulator.
            imgManipulator = new ImageManipulator(img);

            // 向下拉框中添加所有的InterpolationMode.
            for (int i = 0; i <= 7; i++)
            {
                cmbInterpolationMode.Items.Add((InterpolationMode)(i));
            }

            cmbInterpolationMode.SelectedIndex = 0;
        }
예제 #5
0
파일: MainForm.cs 프로젝트: thexur/1code
        public MainForm()
        {
            InitializeComponent();

            // Load a bitmap from a local file.
            Bitmap img = new Bitmap("OneCodeIcon.png");

            // Initialize the bmpEx.
            imgManipulator = new ImageManipulator(img);

            // Add all the InterpolationMode to the combobox.
            for (int i = 0; i <= 7; i++)
            {
                cmbInterpolationMode.Items.Add((InterpolationMode)(i));
            }

            cmbInterpolationMode.SelectedIndex = 0;
        }
예제 #6
0
        /// <summary>
        /// 重置图像.
        /// </summary>
        private void btnReset_Click(object sender, EventArgs e)
        {
            imgManipulator.Dispose();

            // 从本地文件加载位图.
            Bitmap img = new Bitmap("OneCodeIcon.png");

            // 初始化 imgManipulator.
            imgManipulator = new ImageManipulator(img);

            // 重绘 pnlImage.
            imgManipulator.DrawControl(this.pnlImage, adjustment, pen);
        }