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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Soazul

Pages: [1]
1
General / Re: Screenshot part of renderWindow
« on: December 28, 2022, 06:08:56 pm »
To clarify, do you mean saveToFile?

2
General / Screenshot part of renderWindow
« on: December 28, 2022, 03:42:12 am »
Hi, I have trouble understanding how to screenshot only part of the renderWindow. I currently understand how to screenshot the whole window. If anyone has any idea on how to approach this problem, please help me. Thank you.

What I currently have:
sf::Texture texture;
texture.create(1200, 675);
texture.update(renderWindow);
texture.copyToImage().saveToFile(filename + "-imagefilter.jpg");

Pages: [1]
anything