Thread: What is GDI?

  1. #1

    What is GDI?

    GDI was mentioned in a prevgios post of my by jdinger, but I have never heard of GDI.

  2. #2
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    GDI is Windows graphics device interface. It's the part of the Windows API that handles bitmap manipulation, HPEN's, HBRUSH's, etc. If you want more info go to MSDN and look up functions like BitBlt, StrechBlt, GetPixel, SetPixelV and objects like HBITMAP, HPEN, HBRUSH, HDC, etc.

    I'm not sure about OpenGL, but the GDI comes in very handy when making utilities/tools to support DirectX apps (like blitting a bitmap image onto a DirectDraw surface during initialization, etc.).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows GDI vs. Java Graphics
    By Perspective in forum Windows Programming
    Replies: 7
    Last Post: 05-07-2007, 10:05 AM
  2. GDI object lifetime and C++ object lifetime
    By VirtualAce in forum Windows Programming
    Replies: 4
    Last Post: 06-16-2006, 05:26 AM
  3. opengl, or gdi?
    By n3v in forum Game Programming
    Replies: 25
    Last Post: 05-21-2006, 05:02 PM
  4. Whats Peoples Problem With the GDI?
    By MicroFiend in forum Game Programming
    Replies: 6
    Last Post: 07-28-2003, 07:52 PM
  5. Double buffering in GDI -- easy?
    By fusikon in forum Game Programming
    Replies: 17
    Last Post: 02-15-2003, 10:03 PM