What's a Simple Graphics Library for C on Windows 7?

  • Thread starter Thread starter Jaynte
  • Start date Start date
  • Tags Tags
    Graphics
Click For Summary
SUMMARY

The discussion centers on finding a simple graphics library for C programming on Windows 7, specifically excluding OpenGL and GT. The recommended approach involves using the Windows GDI (Graphics Device Interface) for plotting pixels on the screen. Key resources include the MSDN documentation for obtaining the device context and setting pixels, which are essential for drawing operations in a Windows environment.

PREREQUISITES
  • Familiarity with C programming language
  • Understanding of Windows GDI (Graphics Device Interface)
  • Basic knowledge of Windows API for graphics operations
  • Access to MSDN documentation for Windows programming
NEXT STEPS
  • Explore Windows GDI functions for drawing shapes and text
  • Learn about device contexts in Windows programming
  • Investigate alternative graphics libraries for C on Windows, such as SDL or Allegro
  • Review examples of pixel manipulation using GDI in C
USEFUL FOR

Programmers working with C on Windows, particularly those interested in graphics programming and pixel manipulation without relying on OpenGL or GT.

Jaynte
Messages
79
Reaction score
0
Hi

Anyone knows a nice and simple graphics library for C (Windows 7) that is not openGL nor GT.

All I want to do is plot pixels on the screen. In a window or directly in the console.
 
Technology news on Phys.org
You could use GDI.

http://msdn.microsoft.com/en-us/library/dd144871%28v=vs.85%29.aspx" to get the device context for the window that you want to draw to

then

http://msdn.microsoft.com/en-us/library/dd145078%28v=vs.85%29.aspx" to set a pixel
 
Last edited by a moderator:
Thanx a lot!
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
8K
  • · Replies 13 ·
Replies
13
Views
6K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
3
Views
4K
  • · Replies 27 ·
Replies
27
Views
17K
Replies
10
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K