Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Programming \ C # get the current screenshot     - Linux formatted partition error Could not stat / dev / sda No such file or directory Solution (Linux)

- Linux Getting Started Tutorial: Ubuntu laptop screen brightness adjustment (Linux)

- Let's Encrypt with semiautomatic into Nginx configuration https (Server)

- jQuery plugin dynamic label generation (Linux)

- Linux kernel likely and unlikely to resolve macro definitions (Linux)

- namespace mechanism Linux kernel analysis (Linux)

- Apache Kafka: the next generation of distributed messaging system (Server)

- An Analysis of the C Algorithm for Calculating the Number of Days Between Date (Programming)

- C ++ thread creates transmission parameters are changed (Programming)

- Oracle11g build physical standby database (Database)

- Docker: Mirroring and container operations (Server)

- Nginx DHCP TFTP Kickstart set up automatic installation system (Server)

- Ubuntu Linux Change the PATH (Linux)

- SSH Filesystem use a secure connection for network file system (Linux)

- Binary Packages Golang (Linux)

- Oracle database physical file backup / restore (Database)

- Zabbix system email alert Python script (Server)

- Installation and use GAMIT / GLOBK Software (Linux)

- Linux find and xargs (Linux)

- How to install Linux Kernel 4.4 on Ubuntu (Linux)

 
         
  C # get the current screenshot
     
  Add Date : 2018-11-21      
         
         
         
  The main use of CopyFromScreen Graphics function gets shot

Here is a program to obtain the current theme, and this.png the file name.

We need to add a reference to:

using System.Drawing;

Main program:

Bitmap bitmap = new Bitmap (Screen.AllScreens [0] .Bounds.Size.Width, Screen.AllScreens [0] .Bounds.Size.Height);
Graphics g = Graphics.FromImage (bitmap);
g.CopyFromScreen (0, 0, 0, 0, Screen.AllScreens [0] .Bounds.Size);
g.Dispose ();
bitmap.Save ( "this.png");
     
         
         
         
  More:      
 
- Install GAMIT / GLOBK 10.50 software under Ubuntu 14.04 (Linux)
- Free compiler install MySQL-5.6.14 (Database)
- Elaborate 10-point difference between the new and malloc (Programming)
- ORA-00600 error solve one case (Database)
- Ten minutes to find out the character set and character encoding (Linux)
- Hadoop 2.5 Pseudo distribution installation (Server)
- ACL permissions Linux command (Linux)
- Use the command line MySQL database backup and recovery (Database)
- MongoDB query timeout exception SocketTimeoutException (Database)
- CentOS yum install LNMP PHP5.4 version (Server)
- Debian 7 and Debian 8 users how to install Oracle Java 8 (Linux)
- Installation and deployment of Hadoop 2.7.1 on Ubuntu 14.04 LTS (Server)
- Linux user management (Linux)
- Linux host dual LAN transceiver package ARP problem (Linux)
- Understand the security restore accidentally deleted critical system files (Linux)
- VirtualBox CentOS is configured as a local disk mirroring software source (Linux)
- Linear table with a Java implementation of the iterator (Programming)
- Installation and Configuration OpenVPN server and client on Ubuntu 15.04 (Server)
- Linux server startup and logon security settings (Linux)
- Red Hat Enterprise Linux configuration VNC multi-user access methods (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.