This project contains a simple C++ application that captures a screenshot using the Windows API and saves the captured image in JPEG format.
This C++ application utilizes the Windows API to capture a screenshot and then uses the stb_image_write library to save the image in JPEG format. The application captures the entire screen and saves it with the name screenshot.jpg
.
- Windows API: Used for capturing the screenshot.
- stb_image_write: Used for saving the image in JPEG format.
- Compile and run the project.
- The application captures the entire screen and saves it as
screenshot.jpg
. - Check the
screenshot.jpg
file in the working directory.
- Windows: The application only works on Windows operating systems.
- When a screenshot is taken, it overwrites the existing
screenshot.jpg
file.
This project is licensed under the MIT License. For detailed information, see the LICENSE file.