Example #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);
        }
Example #2
0
        /// <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);
        }
Example #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;
        }
Example #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;
        }
Example #5
0
        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;
        }
Example #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);
        }