1
Graphics / Complex Image Handling
« on: May 04, 2011, 02:21:19 pm »
Hi Guys,
So cutting to the chase and avoiding beating around the bush here is what I want to do:
I have created a .dat file (binary) which contains the Uint8 information for a jpg. What I want to do is using iostream load that file into my application and then load it into an sf::Image.
So far I can restore the information into the application as Data (void*) where I get stuck is the converting this information back into Uint8. Does anyone have any ideas as to how I might do this?
Cheers,
Aaron
So cutting to the chase and avoiding beating around the bush here is what I want to do:
I have created a .dat file (binary) which contains the Uint8 information for a jpg. What I want to do is using iostream load that file into my application and then load it into an sf::Image.
So far I can restore the information into the application as Data (void*) where I get stuck is the converting this information back into Uint8. Does anyone have any ideas as to how I might do this?
Cheers,
Aaron