Git Product home page Git Product logo

shapes-drawer's Introduction

SHAPES DRAWER

Desktop application for drawing geometric figures (line, rectangle and free drawing mode) with drawing preview, color selection, tabs, saving and loading the drawing from a file. Created with Windows Forms interface (.NET Framework).

Table of contents

General info

The program allows to draw basic geometric shapes (a straight line from point to point, a rectangle between two points, points - free drawing mode). Drawn objects are visible during the drawing. You can choose a color (from several predefined) and the type of shape currently drawn. For individual shapes, there are definied classes describing their behavior e.g. on mouse cursor movement, pressing, releasing the mouse button (using polymorphism in form.cs). The interface for drawing is in the form of tabs with subsequent drawings. You can close, move, maximize and minimize the window. The content of the tabs can be saved to and loaded from a file. Tabs can be closed and new ones opened. After closing the last tab, the program exits.

Technologies

Project is created with:

  • C# v6.0
  • .NET framework v4.6.1

Setup

Prerequisites and getting the tools

Visual Studio 2017 Version 15.6.6 or later from https://visualstudio.microsoft.com/vs/preview, selecting the .NET desktop development workload with the options: .NET Framework 4.6.1 development tools.

Get executable file

  1. Create a C# Windows Forms Application
  2. Rebuild / Run project
  3. Copy your executable (found in that bin directory) to the target machine. There may also be a couple of other required / useful files in that folder that you might also want to copy (such as a .exe.config or .pdb file).

Features

  • Drawing on the Panel class object.
  • MouseDown, MouseUp, MouseMove events support.
  • Proper drawing in the Paint event handler.
  • Drawing preview (after pressing the mouse button, the program draws a rectangle from the place of pressing to the current location of the mouse cursor).
  • Double buffering (to avoid panel flickering when drawing).
  • The contents of the tab with the drawing can be saved to / loaded from a file.
  • The window can be closed, moved, maximized and minimized.

Graphical User Interface

Gui

Project status

In development.

Other information

shapes-drawer's People

Contributors

olalabs 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.