A WPF application that allows users to perform several tasks including selecting and loading an image, drawing rectangles over the image, changing colors of rectangles, resizing and moving rectangles, and saving the changes to a new image.
- Load image: The user can select and load an image.
- Draw rectangles: The user can draw one or more rectangles over the image by clicking and dragging the mouse. The size of the rectangle depends on how much the mouse is dragged.
- The rectangle can only be drawn inside the picture.
- Change color: The user can change the color of each rectangle by clicking on it and selecting a different color from the color palette.
- Resize and move: The user can resize by dragging corner thumbs and move any rectangle by dragging its center thumb.
- Delete rectangle: The user can delete any rectangle by right-clicking it.
- Save changes: The user can save the changes made to the image to a new JPG file.
- Clone or download the repository.
- Open the solution PictureViewer in Visual Studio, then build and run the solution.
- Or run PictureViewer.exe under PictureViewer_executable folder.
Microsoft official document for Windows Presentation Foundation
Yuxi Qi