simple 2d "putpixel" api for windows?

This is a discussion on simple 2d "putpixel" api for windows? within the C Programming forums, part of the General Programming Boards category; Hi, I'd like to write a simple Program that opens a window where I can put pixels in certain colors. ...

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    2

    simple 2d "putpixel" api for windows?

    Hi,
    I'd like to write a simple Program that opens a window where I can put pixels in certain colors. I've been doing this on dos a few years ago but now want to try again under windows.

    I use Devc++ and want to have a simple way to draw simple things, for example..

    Code:
    main () {
       openwindow (size);
       putpixel (x, y, color);
    }
    There's just too much information, I don't know where to start, if I should use OpenGL for example or whatever. I don't want to create 10 files, 5 classes or whatever in c++ just to have a simple app!

    Can anyone give me a hint, please!?

    Chris

  2. #2
    C++ Enthusiast jmd15's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    532
    Look into Win32 GDI functions. Those are pretty basic if you want to draw very basic things(circles,lines,squares,etc). You will not be able to create a window in Windows with one function, unless you create your own function that does everything for you.
    Trinity: "Neo... nobody has ever done this before."
    Neo: "That's why it's going to work."
    c9915ec6c1f3b876ddf38514adbb94f0

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    2

    Thanks

    Thanks,
    I think that's what I was looking for!

    Chris

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 07-05-2004, 07:41 PM
  2. what SHOULD be a painfully simple API call...
    By Citizen Bleys in forum Windows Programming
    Replies: 3
    Last Post: 09-17-2003, 03:20 PM
  3. WIN API simple programs
    By Blizzarddog in forum Windows Programming
    Replies: 4
    Last Post: 03-24-2003, 01:58 AM
  4. OLE Clipboard :: Win32 API vs. MFC
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 08-11-2002, 05:57 PM
  5. Simple 2D array problem...In a Hurry!
    By 67stangman in forum C++ Programming
    Replies: 8
    Last Post: 04-18-2002, 01:22 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21