Giter VIP home page Giter VIP logo

sharpareapicker's Introduction

SharpAreaPicker

A (WinForms) .NET plugin library to add snipping dialog to your project

How to use It

  1. Download the latest version of SharpAreaPicker.dll;
  2. Create a new Windows Forms project on your Visual Studio (Community 2017 is the version I use). It has to be pointing to version 4.5.2 or higher of .Net Framework;
  3. Go to solution explorer, right click references and choose add reference. Then under the Assemblies tab, click on the search button and add a reference to the SharpAreaPicker.dll You just downloaded;
  4. Now, You can use get a snip of the screen like:
Image img = AreaPicker.screenshot(this);
if (img != null)
{
   /*
     img is your screenshot, use It
   */
}

Note: By passing the caller form to the screenshot function, It will be automatically minimized when the snipping dialog comes up.

How the user is supposed to use It

The dialog lacks on instructions, but It's really simple to understand. The AreaPicker dialog is a resizable Form, without a ControlBox (3 common buttons of the top right), that can be dragged with the mouse. It has a context menu that You can bring up by right clicking the dialog, with two items: Capture, which will close the dialog and return the screenshot, and cancel, which will close the form and return null.

"Capture" can be fired by return/enter Keypress as well as cancel will be invoked by pressing the ESC key.

sharpareapicker's People

Contributors

gustavo-kuze avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.