SFML community forums

Help => General => Topic started by: Red-XIII on April 15, 2015, 02:37:42 am

Title: Setting an SFML Icon
Post by: Red-XIII on April 15, 2015, 02:37:42 am
Lol, okay so... I made a plugin for Paint.NET to save a data table from an image as single byte integers that are unsigned, each 4 numbers is in the format of RGBA. When I placed the data in my program, and set the icon data for the Render Window it oddly rotates the image by 90 degrees to the left.

(http://www.AdvancedProtocol.net/Pictures/Preview.png)

Icon.cpp
(click to show/hide)

Icon.h
(click to show/hide)

Apollo.cpp
(click to show/hide)
Title: Re: Setting an SFML Icon
Post by: eXpl0it3r on April 15, 2015, 02:39:40 am
Then you either export it/import it wrongly.

Not sure how you think we should be able to help you here. ;)
Title: Re: Setting an SFML Icon
Post by: Red-XIII on April 15, 2015, 02:46:17 am
Lol I don't want to have to rotate an image 90 degrees to the right every time I save it as a integer table. Alright, i'll check to see how it imports in Paint.NET after exporting it as an integer table, maybe that will help show me were the error is.
Title: Re: Setting an SFML Icon
Post by: Red-XIII on April 15, 2015, 07:15:51 am
Hmm... the issue seems to be coming from Paint.NET. The image is copied as is into an int array, so it must be Paint.NET that's rotating the image.

(http://www.AdvancedProtocol.net/Pictures/Proof.png)