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

Author Topic: Setting an SFML Icon  (Read 1601 times)

0 Members and 1 Guest are viewing this topic.

Red-XIII

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Advanced Protocol
    • Email
Setting an SFML Icon
« 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.



Icon.cpp
(click to show/hide)

Icon.h
(click to show/hide)

Apollo.cpp
(click to show/hide)
« Last Edit: April 15, 2015, 02:48:18 am by Red-XIII »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Setting an SFML Icon
« Reply #1 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. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Red-XIII

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Advanced Protocol
    • Email
Re: Setting an SFML Icon
« Reply #2 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.
« Last Edit: April 15, 2015, 02:51:44 am by Red-XIII »

Red-XIII

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Advanced Protocol
    • Email
Re: Setting an SFML Icon
« Reply #3 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.

« Last Edit: April 15, 2015, 07:17:46 am by Red-XIII »