PDA

View Full Version : render image raw data to texture



saman_artorious
08-08-2013, 02:19 AM
I receive raw data of an image via socket. What I want to do is to create a texture with this image raw data and render the texture in the widget. I do not know what functions to use, could anyone give me some help here please.

tonyo_au
08-08-2013, 11:49 PM
When you say "raw" do you mean 4 bytes per pixel (RGBA) or (BGRA) or 3 bytes per pixel (RGB) or 4 floats per pixel?

saman_artorious
08-10-2013, 09:55 PM
When you say "raw" do you mean 4 bytes per pixel (RGBA) or (BGRA) or 3 bytes per pixel (RGB) or 4 floats per pixel?

RGB 3 bytes per pixel. How come? what that makes the difference with one additional byte?