Drawing images?

I am trying to create an application where numbers correspond with specific points on an image, and when a user enters a number, a circle is drawn on the point associated to the number entered by the user. How would I go about doing this?
Last edited on
I would start with putting an image on the screen, and there are a variety of add-on libraries that can do this in c++. Most people on the net recommend sfml, qt, and wxwidgets for gui related programming. So once you display your image, you will need to have numbers printed on the image. Those gui libraries can also draw text/fonts to the screen. Then you will need to request user input, and draw a circle using a gui library. Try out sfml it is great for beginners. Let us know if you get stuck anywhere along the way.
I will edit this post in a bit with some more links that might help you with images, font, and circles.
http://www.sfml-dev.org/

Edit:
Short example of how easy sfml is and the example includes font and image drawing:
http://www.sfml-dev.org/documentation/2.1/

There are examples on here for keyboard:
http://www.sfml-dev.org/documentation/2.1/classsf_1_1Keyboard.php
http://www.sfml-dev.org/documentation/2.1/structsf_1_1Event_1_1KeyEvent.php

If you already know how to use OpenGL you can draw a circle using an OpenGL call once you have the drawing context:
http://www.sfml-dev.org/documentation/2.1/classsf_1_1Context.php

I would recommend just using sf::CircleShape instead:
http://www.sfml-dev.org/documentation/2.0/classsf_1_1CircleShape.php
Last edited on
Yeah, I would like to draw an image on the screen or in database. As for the choice of drawing image, usually, there are two, drawing text on image and drawing image on .net graphics and save to screen or memry stream.

http://www.rasteredge.com/how-to/vb-net-imaging/image-drawing-net-graphics/

http://www.rasteredge.com/how-to/vb-net-imaging/image-drawing-text/
Topic archived. No new replies allowed.