[C#] Loading bitmap from a stream
Posted: Wed 14 Feb, 2007 2:28 pm
you're probably thinking "what?!? he can't even do that?!"
well I can, but I want to load it from the stream starting at a position other than zero. Simply setting the position (using seek or just writing to the position) does not seem to work. I didn't find anything using google, so I feared it may not be possible, but it almost has to be, it's something so simple..
I'd rather not do weird things like copying byte arrays to bitmap-data things, I guess that would work but it shouldn't have to be that complicated.
If that's the only possibility then ofcourse it's ok..
well I can, but I want to load it from the stream starting at a position other than zero. Simply setting the position (using seek or just writing to the position) does not seem to work. I didn't find anything using google, so I feared it may not be possible, but it almost has to be, it's something so simple..
I'd rather not do weird things like copying byte arrays to bitmap-data things, I guess that would work but it shouldn't have to be that complicated.
If that's the only possibility then ofcourse it's ok..