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

Author Topic: Can I load an image from GIMP exported C file?  (Read 1200 times)

0 Members and 1 Guest are viewing this topic.

peytuk

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Can I load an image from GIMP exported C file?
« on: March 03, 2020, 04:04:50 pm »
Is there a way to load an image from a c file just like we can do for icons? I couldn't find any question about this.

window.setIcon(triangle_icon.height,triangle_icon.width,triangle_icon.pixel_data);

Edit: I mean, there are methods to load these .c images, but is there a
setIcon
like quick method for this?
« Last Edit: March 03, 2020, 04:14:18 pm by peytuk »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Can I load an image from GIMP exported C file?
« Reply #1 on: March 03, 2020, 06:21:39 pm »
sf::Image::create?
Laurent Gomila - SFML developer