Thread: simple graphics /win

  1. #1
    Registered User
    Join Date
    Jul 2002

    simple graphics /win

    is there an equivalent of 'putpixel' and like simple graphics functions
    that compiles under win (millenium)

    (i'm using BC 4.52)


  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    You bet!

    COLORREF SetPixel(
      HDC hdc,           // handle to DC
      int X,             // x-coordinate of pixel
      int Y,             // y-coordinate of pixel
      COLORREF crColor   // pixel color

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Visalia, CA, USA
    You didn't ask but the win32 api also has this:
    BOOL TextOut(
        HDC hdc,	// handle of device context 
        int nXStart,	// x-coordinate of starting position  
        int nYStart,	// y-coordinate of starting position  
        LPCTSTR lpString,	// address of string 
        int cbString 	// number of characters in string 

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. simple 2d "putpixel" api for windows?
    By spiky in forum C Programming
    Replies: 2
    Last Post: 10-27-2005, 02:44 PM
  2. Graphics tutorial
    By ssjnamek in forum C++ Programming
    Replies: 1
    Last Post: 08-15-2005, 02:13 AM
  3. a simple Dev-C++ game graphics system
    By shintaro in forum Game Programming
    Replies: 1
    Last Post: 08-11-2005, 05:49 PM
  4. Tutorial for making better computer graphics?
    By supertoad in forum A Brief History of
    Replies: 3
    Last Post: 05-02-2005, 12:19 AM
  5. Very simple question, problem in my Code.
    By Vber in forum C Programming
    Replies: 7
    Last Post: 11-16-2002, 03:57 PM