Skip to content

u1krsh/Autopainter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoPainter (PaintIt)

AutoPainter is a Windows Forms application that automates the process of painting images on your screen. It processes an input image, converts it to a binary or thresholded version, and then controls your mouse cursor to "paint" the image pixel by pixel on a target canvas (e.g., MS Paint, Photoshop, or any drawing application).

Preview

Features

  • Image Processing: Uses OpenCV (via Emgu.CV) to load and process images.
  • Threshold Control: Adjustable threshold slider to control the detail/contrast of the binary image.
  • Threshold Modes: Supports standard Binary and Binary Inverted thresholding.
  • Screen Overlay: Allows you to select the exact area on your screen where you want the painting to occur.
  • Automated Painting: Simulates mouse clicks and movements to draw the processed image.
  • Safety: Checks for active window focus and mouse movement to pause/stop drawing if interrupted.

Prerequisites

  • Windows OS
  • .NET Framework 4.8
  • Emgu.CV (included in packages or restore via NuGet)

Installation

  1. Clone the repository or download the source code.
  2. Open the solution file PaintIt.sln in Visual Studio.
  3. Restore NuGet packages if necessary.
  4. Build the solution (Debug or Release).

Usage

  1. Launch the Application: Run the PaintIt.exe executable.
  2. Load an Image: Click the Browse button to select an image file (JPG, PNG, etc.).
  3. Adjust Threshold:
    • Use the slider to adjust the threshold value.
    • Select Binary or Binary Inv to change the thresholding mode.
    • The preview box shows how the image will be drawn.
  4. Start Painting:
    • Open your target drawing application (e.g., MS Paint) and select the tool you want to use (e.g., Pencil, Brush).
    • Click the Draw button in AutoPainter.
    • The application will hide and show a screen overlay.
    • Select Area: Click and drag on the screen to define the rectangular area where the image should be drawn.
    • Once the area is selected, the application will minimize, process the image, and begin drawing after a short delay.
  5. Stop/Pause:
    • Move your mouse manually or change the active window to stop the drawing process.

Disclaimer

This tool takes control of your mouse cursor. Ensure you are ready to let it run before starting. It is recommended to test with a small image or area first. The "Safety" feature attempts to stop drawing if you move the mouse, but always be prepared to intervene if necessary.

About

Automatic Drawing tool in C# and .net

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages