Is it possible to create a texture from an Image ?

Options
Hello :smile:

I am trying to make a texture from a bitmap like this : 
Texture texture = new Texture(image); // image is a bitmap
but I got this error : invalid parameter. I checked if there was a difference in the pixelformat but it was the same. 

Can you help me ? Did I missed a step ?

Thank you in advance,
Alexandre Nicaise


Tagged: