Simplest Way to Draw Rectangle on JPG Image C++

Hi, new here. If i do something wrong when using forum and asking, please warn me about that.

I'm using Visual Studio 2015 and development environment is C++ Win32 Console Application.

I have a sample jpg image. Let's posit i have 4 points width, height, x and y coords. I just want to draw a blank rectangle between these points into sample image. I'm curious about what's the simplest way to do this? I really need help, actually i don't want to use OpenCV and that much sized libraries.

The way i need to do is:

[Load JPG Image -> Draw Rectangle Between Points I have -> Save Image as JPG]

What's your suggestions? I'll be thankful if you share sample codes here.
I'd suggest ImageMagick.
https://www.imagemagick.org/Magick++/
Topic archived. No new replies allowed.