zoukankan      html  css  js  c++  java
  • Utils

    using System;
    using System.Drawing;
    using System.Windows.Forms;
    
    
    namespace zhbCapture
    {
    	/// <summary>
    	/// Description of Utils.
    	/// </summary>
    	public class Utils
    	{
    		public static Bitmap screenBmp, srcScreenBmp;
    		public static int screenWidth = Screen.PrimaryScreen.Bounds.Width;
    		public static int screenHeight = Screen.PrimaryScreen.Bounds.Height;
    		public static Size screenSize = Screen.PrimaryScreen.Bounds.Size;
            public static Point screenLocation = new Point(0, 0);
            public static Rectangle screenRect = new Rectangle(screenLocation, screenSize);
    		public Utils()
    		{
    			
    		}
    		public static Bitmap getScreen(){
    			
    			Bitmap bitmap = new Bitmap(screenWidth, screenHeight);
    			using (Graphics g = Graphics.FromImage(bitmap)) {
    				g.CopyFromScreen(0,0,0,0,screenSize);
    				return bitmap;
    			}
    		}
    	}
    }
    

      

  • 相关阅读:
    Js获取下拉框当前选择项的文本和值
    11、ACL
    10、VLAN
    9、层二交换技术
    8、OSPF
    7、EIGRP
    6、RIP
    5、路由协议原理
    4、设备配置与管理
    3、IP地址划分
  • 原文地址:https://www.cnblogs.com/cause/p/3837872.html
Copyright © 2011-2022 走看看