资源简介

具备图像处理的基础功能如:(1)添加、复制、剪切图像(2)放大、缩小、移动图像(3)水平、垂直旋转图像(4)画笔功能:改变颜色、画笔大小(5)橡皮擦功能:改变橡皮擦大小 具备图像特效处理功能:灰度、边缘处理、底片、浮雕、黑白、柔化、锐化、模糊、光照、百叶窗

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
//using System.Speech.Synthesis;
using System.Speech.Recognition;
using SpeechLib;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Windows.Forms;
using System.Drawing.Imaging;
using System.Runtime.InteropServices;
using MySql.Data.MySqlClient;
using System.Drawing.Drawing2D;

namespace pictureDeal
{
    //MouseWheel += new MouseEventHandler(Form1_MouseWheel);
    public partial class Form1 : Form
    {

        public Form1()
        {
            InitializeComponent();
            
            comboBox1.SelectedIndex = 4;
 
      
        }
        public bool yansekaiguan;
        public bool yidongkaiguan;
        Bitmap bitmap;
        Pen pen;
        //Bitmap newbitmap;
        Stopwatch sw = new Stopwatch();
        SpeechRecognitionEngine recEngine = new SpeechRecognitionEngine();
        public string path;
        SaveFileDialog sfdFile = new SaveFileDialog();

        //贴图
        private void button1_Click(object sender EventArgs e)
        {

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                path = openFileDialog1.FileName;
                bitmap = (Bitmap)Image.FromFile(path);
                pictureBox1.Image = bitmap.Clone() as Image;
                

            }
        }
        //鼠标滚轮放大
        private void Form1_MouseWheel(object sender MouseEventArgs e)
        {
            //判断上滑还是下滑
            if (e.Delta < 0)
            {
                //计算缩放大小
                this.pictureBox1.Width = this.pictureBox1.Width * 9 / 10;
                this.pictureBox1.Height = this.pictureBox1.Height * 9 / 10;
            }
            else
            {
                this.pictureBox1.Width = this.pictureBox1.Width * 11 / 10;
                this.pictureBox1.Height = this.pictureBox1.Height * 11 / 10;
            }

        }
        //private void button2_Click(object sender EventArgs e)
        //{
        //    if (bitmap != null)
        //    {
        //        Graphics g = this.CreateGraphics();
        //        //g.TranslateTransform(200.0f -100.0f);
        //        g.DrawImage(bitmap 200 0 bitmap.Width / 2 bitmap.Height / 2);
        //       // pictureBox1.Image = bitmap.Clone() as Image;
        //        // g.FillEllipse(new SolidBrush(Color.FromArgb(50 Color.Green)) 120 30 200 100);//平移
        //    }
        //    }

        private void button3_Click(object sender EventArgs e)
        {

        }

        int xPos;
        int yPos;
        bool MoveFlag;
        //移动图片
        private void pictureBox1_MouseUp(object sender MouseEventArgs e)
        {
            //鼠标已经抬起
            MoveFlag = false;
        }

        private void pictureBox1_MouseMove(object sender MouseEventArg

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-12-23 22:36  仿photoshop\
     目录           0  2019-12-23 20:30  仿photoshop\.vs\
     目录           0  2019-12-23 20:30  仿photoshop\.vs\pictureDeal\
     目录           0  2019-12-23 20:32  仿photoshop\.vs\pictureDeal\v16\
     文件       46080  2019-12-24 17:46  仿photoshop\.vs\pictureDeal\v16\.suo
     目录           0  2019-12-23 20:31  仿photoshop\.vs\pictureDeal\v16\Server\
     目录           0  2019-12-24 17:46  仿photoshop\.vs\pictureDeal\v16\Server\sqlite3\
     文件           0  2019-12-23 20:31  仿photoshop\.vs\pictureDeal\v16\Server\sqlite3\db.lock
     文件      888832  2019-12-24 17:46  仿photoshop\.vs\pictureDeal\v16\Server\sqlite3\storage.ide
     目录           0  2019-12-23 20:30  仿photoshop\packages\
     目录           0  2019-12-23 22:36  仿photoshop\packages\Baidu.AI.3.6.13\
     文件         528  2019-07-04 06:10  仿photoshop\packages\Baidu.AI.3.6.13\[Content_Types].xml
     文件      114214  2019-07-04 06:10  仿photoshop\packages\Baidu.AI.3.6.13\Baidu.AI.3.6.13.nupkg
     目录           0  2019-12-23 20:30  仿photoshop\packages\Baidu.AI.3.6.13\lib\
     目录           0  2019-12-23 22:36  仿photoshop\packages\Baidu.AI.3.6.13\lib\net35\
     文件       90112  2019-07-04 06:10  仿photoshop\packages\Baidu.AI.3.6.13\lib\net35\AipSdk.dll
     文件      113764  2019-07-04 06:10  仿photoshop\packages\Baidu.AI.3.6.13\lib\net35\AipSdk.xml
     目录           0  2019-12-23 22:36  仿photoshop\packages\Baidu.AI.3.6.13\lib\net40\
     文件       90624  2019-07-04 06:10  仿photoshop\packages\Baidu.AI.3.6.13\lib\net40\AipSdk.dll
     目录           0  2019-12-23 22:36  仿photoshop\packages\Baidu.AI.3.6.13\lib\net45\
     文件       90624  2019-07-04 06:10  仿photoshop\packages\Baidu.AI.3.6.13\lib\net45\AipSdk.dll
     目录           0  2019-12-23 22:36  仿photoshop\packages\Baidu.AI.3.6.13\lib\netstandard2.0\
     文件       90624  2019-07-04 06:10  仿photoshop\packages\Baidu.AI.3.6.13\lib\netstandard2.0\AipSdk.dll
     目录           0  2019-12-23 22:36  仿photoshop\packages\Newtonsoft.Json.10.0.3\
     目录           0  2019-12-23 20:30  仿photoshop\packages\Newtonsoft.Json.10.0.3\lib\
     目录           0  2019-12-23 22:36  仿photoshop\packages\Newtonsoft.Json.10.0.3\lib\net20\
     文件      498688  2019-07-04 06:10  仿photoshop\packages\Newtonsoft.Json.10.0.3\lib\net20\Newtonsoft.Json.dll
     文件      572193  2019-07-04 06:10  仿photoshop\packages\Newtonsoft.Json.10.0.3\lib\net20\Newtonsoft.Json.xml
     目录           0  2019-12-23 22:36  仿photoshop\packages\Newtonsoft.Json.10.0.3\lib\net35\
     文件      460800  2019-07-04 06:10  仿photoshop\packages\Newtonsoft.Json.10.0.3\lib\net35\Newtonsoft.Json.dll
     文件      515871  2019-07-04 06:10  仿photoshop\packages\Newtonsoft.Json.10.0.3\lib\net35\Newtonsoft.Json.xml
............此处省略67个文件信息

评论

共有 条评论