Hi.
I have been requested to extract to memory portions of an image which are not rectangular in shape. Is this possible adn how?
Or is this something I need to do with 3d tool: directx, xna, OpenGL?
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bechir BejaouiPosted Mar 22, 2008, 11:10 AM
supose that your image is stocked as bytes somewhere
for example
byte[]DataImg
Here's the code:
//Put the DataImg array that contains the image in binary fromat in memory
MemoryStream oMemoryStream = new MemoryStream(DataImg);
//Then extract the image from this last one
Image myImage = Image.FromStream(oMemoryStream);
That's it