zoukankan      html  css  js  c++  java
  • .net 下操作鼠标滚轮的事件 以及换算方法


    public partial class Form1 : Form
        {
            Bitmap memBitmap;
            
    float currRotation = 10;
            Rectangle rect 
    = new Rectangle(10050150100);
            
    public Form1()
            {
                InitializeComponent();
                memBitmap 
    = new Bitmap(this.Width, this.Height);
                
    using (Graphics g = Graphics.FromImage(memBitmap))
                {
                    g.DrawRectangle(Pens.Blue, rect);
                }
            }
            
    protected override void OnMouseWheel(MouseEventArgs e)
            {
                currRotation 
    -= 5.0f * e.Delta / SystemInformation.MouseWheelScrollDelta;     // 5 degree, you can make it 45
                
            }
  • 相关阅读:
    验证码处理 -- 爬虫
    Django知识点总结
    关于sql去重
    tsxt-01
    崔老师爬取top100的源码(会403)
    简单爬取网页源码
    爬取猫眼top100
    python-自动发邮件
    python-装饰器
    Python 爬虫基础Selenium库的使用
  • 原文地址:https://www.cnblogs.com/SUNBOY/p/1538837.html
Copyright © 2011-2022 走看看