Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Uint8 to sf::Image ?
Print
Pages: [
1
]
Author
Topic: Uint8 to sf::Image ? (Read 1687 times)
0 Members and 1 Guest are viewing this topic.
whitegentleman
Newbie
Posts: 6
Uint8 to sf::Image ?
«
on:
March 02, 2013, 02:36:55 am »
I was wondering if there was a way in SFML 2 to init sf::Image with sf::Uint8 ?
Because in SFML 1.6 you could use image.loadFrompixel to init sf::image.
thx in advance
Logged
G.
Hero Member
Posts: 1593
Re: Uint8 to sf::Image ?
«
Reply #1 on:
March 02, 2013, 03:08:43 am »
The documentation seems to say so.
sf::Image::create(unsigned int width, unsigned int height, const Uint8 *pixels)
Logged
whitegentleman
Newbie
Posts: 6
Re: Uint8 to sf::Image ?
«
Reply #2 on:
March 02, 2013, 01:41:25 pm »
Is there a way to Convert From FreeImage To sf::Texture or sf::Image ?
Or do i implement it myself ?
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Uint8 to sf::Image ?
anything