1
Window / Own window design from .png with shadows
« on: March 04, 2016, 07:13:28 pm »
Hello guys.
1) I have a .psd design and some layers of it uses blending mode with shadows.
2) I create a .png of background image which takes layers with shadow.
3) I create a window that has "sf::Style::None" style.
And as result I taking the window where shadows of background image replaced by black pixels.
What i do in my code:
1) Create window with "sf::Style::None".
2) Load background-image to sf::Image, load image to sf::Texture, and create sf::Sprite from this texture.
Also it all looks like very bold border around image.
Thanks for answers.
1) I have a .psd design and some layers of it uses blending mode with shadows.
2) I create a .png of background image which takes layers with shadow.
3) I create a window that has "sf::Style::None" style.
And as result I taking the window where shadows of background image replaced by black pixels.
What i do in my code:
1) Create window with "sf::Style::None".
2) Load background-image to sf::Image, load image to sf::Texture, and create sf::Sprite from this texture.
Also it all looks like very bold border around image.
Thanks for answers.