登录
首页 » C# » c#用鼠标画直线

c#用鼠标画直线

于 2022-02-10 发布 文件大小:48.38 kB
0 143
下载积分: 2 下载次数: 1

代码说明:

应用背景实现动态画图,及拖动鼠标就能动态产生图形,并且颜色是可调节的,当你不喜欢颜色时候,你可以换不同的颜色,画直线,所以这个程序很好的实现了c#的动态画图,  此程序是我自己编的,不足之处还望大家指正,谢谢大家,我们一起学习,一起进步,喜欢编程的朋友可以经常交流一下,关键技术 public partial class Form1 : Form     {         Point startPoint = new Point();       //  bool showPaint = false;         public Form1()         {             InitializeComponent();         }         private void Form1_MouseDown(object sender, MouseEventArgs e)         {             startPoint = new Point(e.X, e.Y);             //{ showPaint = true; }         }         private void

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • dvm
    智能化,有助于今后的学习,测量电阻电压功能,实现智能化(Intelligent, contribute to the future of learning, measuring resistance-voltage capability, intelligent)
    2009-10-12 14:29:01下载
    积分:1
  • LPC2148-IAP
    基于NXP公司的ARM7芯片LPC2148的IAP模块的程序,在Keil4上编译通过(NXP' s ARM7 chip LPC2148 IAP module-based program, compiled by the Keil4)
    2020-09-04 15:28:09下载
    积分:1
  • 查询列表,以满足所有节点的条件,输入和输出通过文件…
    查询链表中所有满足条件的结点,通过文件输入输出。-Query list to meet the conditions of all nodes, input and output through the document.
    2022-06-15 15:09:37下载
    积分:1
  • oeguggingsuser
    poj题目2949平板着色问题,动态规划经典题目()
    2017-12-04 07:50:09下载
    积分:1
  • CBCT
    FDK重建算法 希望对其他人能有帮助 用C和cuda 实现的(fdk reconstrcution algorithm using cuda and c source code hope to help others it may be usefull. it is implented by c and cuda)
    2021-01-09 18:38:50下载
    积分:1
  • PWM输出实验
    通过定时器控制pwm输出,进而控制电机舵机的转动。(The output of PWM is controlled by a timer, and then the rotation of the motor steering gear is controlled.)
    2020-06-18 17:20:02下载
    积分:1
  • PS2STC12---OK
    基于PS2协议的鼠标进行位移测量,已经经过测试(The mouse displacement measurement based on PS2 protocol,It has been tested)
    2013-11-07 20:44:18下载
    积分:1
  • 这个程序是根据上一个上传的模糊神经网络的算法改进,更加精确,而且训练时间缩短。...
    这个程序是根据上一个上传的模糊神经网络的算法改进,更加精确,而且训练时间缩短。-this procedure is uploaded on a fuzzy neural network algorithm improvements, more precise, and reduce training time.
    2022-11-13 06:10:04下载
    积分:1
  • 自己写的XML格式化工具,onvif测试的时候很好用
    在进行onvif测试时,测试软件返回的xml格式的信息很乱,不好分析,于是自己写的一个简单xml格式化整理工具。将在第一个输入框里填入未经格式化整理xml文本或者xml文本所在的位置,第二个方框填写xml格式化整理后想要保存的路径,点击确定就可以得到整整齐齐的xml文件
    2022-08-07 02:19:26下载
    积分:1
  • STM32-RTC
    stm32f030f4写的RTC简易代码,能够实现简单的定时唤醒,设置定时时间,在一段时间后自动触发定时器中断,产生中断标志位,中断处理完相关代码,返回主函数继续执行后续操作。
    2023-03-20 14:25:04下载
    积分:1
  • 696518资源总数
  • 106010会员总数
  • 4今日下载