Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Screenshot of the whole desktop in SFML?  (Read 1590 times)

0 Members and 1 Guest are viewing this topic.

KKZiomek

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Screenshot of the whole desktop in SFML?
« on: December 23, 2016, 07:45:31 pm »
Hi, is there a function in SFML that captures the whole desktop, not just the window, and saves it to a buffer or an image object?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Screenshot of the whole desktop in SFML?
« Reply #1 on: December 23, 2016, 08:14:51 pm »
No, SFML doesn't provide such a feature. However people here on the forum have previously written some short code snippets that allow to do this. Just run a forum search and you should be able to find it.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

StubblyOne

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Re: Screenshot of the whole desktop in SFML?
« Reply #2 on: December 26, 2016, 11:29:26 am »
Why dont you just use print sc then open a paint program and paste it in there?