SFML community forums

Help => Graphics => Topic started by: Wine on April 01, 2010, 06:33:35 pm

Title: Getting pixels from sf::RenderWindow
Post by: Wine on April 01, 2010, 06:33:35 pm
How can I get pixels from sf::RenderWindow? I'm going to get pixels and then update it on WM_PAINT message in my game (I don't need realtime rendering). On the other hand; can I connect HDC whit sf::RenderWindow?
Title: Getting pixels from sf::RenderWindow
Post by: Laurent on April 01, 2010, 07:27:28 pm
Quote
How can I get pixels from sf::RenderWindow?

Code: [Select]
sf::Image image = window.Capture();

Quote
On the other hand; can I connect HDC whit sf::RenderWindow?

No, since SFML doesn't give access to the internal HWND.