# MS Paint User Manual

## Introduction
Welcome to the user manual for the MS Paint application developed by ChatDev. This software program replicates the functionality of the classic MS Paint application found in Windows XP, providing a nostalgic experience for users. This manual will guide you through the installation process, introduce the main functions of the software, and explain how to use it effectively.

## Table of Contents
1. Installation
2. Main Functions
   - Drawing Tools
   - Color Selection
   - Image Editing
   - Text Insertion
   - Saving and Opening Image Files
3. Troubleshooting
4. Frequently Asked Questions (FAQs)

## 1. Installation
To install the MS Paint application, please follow these steps:

1. Ensure that you have Python installed on your computer. If not, you can download it from the official Python website (https://www.python.org/downloads/).

2. Clone or download the project files from the ChatDev repository on GitHub (https://github.com/ChatDev/MS-Paint-Application).

3. Open a terminal or command prompt and navigate to the project directory.

4. Install the required dependencies by running the following command:
   ```
   pip install -r requirements.txt
   ```

5. Once the installation is complete, you can launch the application by running the following command:
   ```
   python main.py
   ```

## 2. Main Functions
The MS Paint application provides several main functions that allow you to create and edit images. Let's explore each of these functions in detail.

### Drawing Tools
The application offers three drawing tools: Pencil, Brush, and Shape. You can select a tool by clicking on the corresponding button in the toolbar.

- Pencil: Use the pencil tool to draw freehand lines on the canvas.
- Brush: The brush tool allows you to draw with a brush-like effect, creating thicker lines.
- Shape: With the shape tool, you can draw rectangles on the canvas.

### Color Selection
To select a color for your drawings, click on the "Select Color" button in the toolbar. A color picker dialog will appear, allowing you to choose a color from a wide range of options.

### Image Editing
The MS Paint application also provides basic image editing capabilities, including crop, resize, and rotate.

- Crop: To crop an image, select the portion you want to keep and click on the "Crop" option in the menu.
- Resize: Use the "Resize" option in the menu to adjust the size of the image.
- Rotate: The "Rotate" option allows you to rotate the image clockwise or counterclockwise.

### Text Insertion
You can insert text into your images using the text insertion feature. To do this, click on the "Text" option in the menu and enter the desired text in the dialog box that appears.

### Saving and Opening Image Files
The MS Paint application allows you to save your images as files and open existing image files.

- Save: To save your image, click on the "Save" option in the menu. Choose a file name and location, and select the desired file format (e.g., PNG).
- Open: To open an existing image file, click on the "Open" option in the menu. Navigate to the file location and select the file you want to open.

## 3. Troubleshooting
If you encounter any issues while using the MS Paint application, please try the following troubleshooting steps:

1. Ensure that you have installed all the required dependencies correctly. Refer to the installation instructions in this manual.

2. Make sure that you have the latest version of Python installed on your computer. You can check for updates on the official Python website.

3. If the application crashes or freezes, try restarting it and see if the issue persists.

4. If you are unable to save or open image files, check the file permissions and make sure you have write access to the specified location.

If the problem persists, please contact our support team for further assistance.

## 4. Frequently Asked Questions (FAQs)
Q: Can I use this application on operating systems other than Windows XP?
A: Yes, the MS Paint application developed by ChatDev is compatible with Windows, macOS, and Linux operating systems.

Q: Can I customize the toolbar or add additional features to the application?
A: Currently, the application does not support customization or adding new features. However, you can contribute to the project on GitHub and suggest enhancements.

Q: Is there a limit to the canvas size?
A: The canvas size is limited by the available memory on your computer. However, extremely large canvas sizes may impact performance.

Q: Can I undo or redo my actions?
A: The application does not currently support undo or redo functionality. Please make sure to save your progress regularly.

Q: How can I report a bug or suggest a new feature?
A: You can report bugs or suggest new features by creating an issue on the GitHub repository for the MS Paint application.

For any other questions or concerns, please reach out to our support team for assistance.

Thank you for choosing the MS Paint application developed by ChatDev. We hope you enjoy using it and unleash your creativity!