-2

Is there a library for C to enable it to take screenshots and save as a .bmp file?

Frustrated Python Coder
  • 1,503
  • 3
  • 15
  • 15

1 Answers1

3

No standard way in C. C doesn't even have the notion of a screen, let alone taking a screenshot.

The library you used in Python presumably has C bindings or at least C source code. You could look into those, or a portable GUI library such as GTK+. Or you could go for your platform's API, but that's usually not worth the frustration.

See Taking a screenshot with C\GTK for a simple GTK+ example.

Community
  • 1
  • 1
aib
  • 45,516
  • 10
  • 73
  • 79