To twith he Point.

Stoo

Junior Member
May 17, 2011
2
0
0
Being a noobie to C++ I got myself a couple of ref books and tho they are both very good they don`t actually tell me how to do anything other than print to a console.

I would very much like to be able to plot a pixel to a bitmap/window using x/y co-ords in the simplest way possible.

Can anybody point me to an example or create on.

Preferably with plenty of comments to ease my way.

Here`s hoping, Stoo :)
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
Well, rendering graphics can be quite a bit more complex than just printing to the console.

What environment are you programming in? Linux or Windows?
 

Cogman

Lifer
Sep 19, 2000
10,283
135
106
I'll just quote what I said in your last thread.

Well, Sorry to disappoint you Stoo, but this is really not an easy thing to do in C++. The problem is, doing this is going to vary from platform to platform. When dealing with guis, things just aren't really THAT easy. Text based programs are a much easier place to start when it comes to c++.

Assuming you are working with windows, this is probably the simplest I can get
http://www.winprog.org/tutorial/start.html

Make friends with the msdn. After you go through those tutorials there, you will finally be setup to do this
http://msdn.microsoft.com/en-us/library/dd145078(v=vs.85).aspx
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,500
4,347
75
C++ isn't a very easy language to begin with; and graphics in C++ certainly isn't. You'd need to interface with a proprietary library of one sort or another.

Come to think of it, and considering Cogman's comments in that other thread, the most accessible platform for programming these days is...the one you're looking at. Your browser!

Maybe you'd be interested in Mozilla's tutorial on a graphics element? It's Javascript and not C++, but you may already have everything you need to get started. It's probably best done in Firefox, of course.