Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Converting byte[] into an Image object
#4
@ Kortestanov: How exactly would C# know that the image has alphas? Just tell it it's a PNG or something?

I'll get to tinkering around over the next few days.

Devil's Sunrise Wrote:Well, first of all, you have to parse the data given to you. I've worked with apngs before, so I know its documentation well (if you need that, that is). However, for static pictures, there should be some documentation on how to read that into a byte-array, write, concatenate and other stuff like that. Heck, it's even possible in Java, it should be possible in C#.

For 3: there should be some library to do that as well (I know, because Java offers to read a byte array to an image, and then print it as a picture)

But might I ask why you would like to do that without making a new temp file?

I'm good with APNGs ty. I'm not exactly going to play into that this time xD I would like to ask if Firefox has fixed the issue with the frame offsets though, as I couldn't get those to work no matter what I did (unless they were 0,0). Also, I've never really played with application windows in Java, and I'm not attracted to what UIs I've seen.

As for the temp file thing, it's not a strict requirement, but it's something I would rather prefer not to do. Y'know, just in case I do something stupid. Haha xD I also think it gives less chance for a CRC error to show up, since I suspect that my lappy's HD has bad sectors in it. Nasty shyt happens whenever I run into that x_X
Reply


Messages In This Thread
Converting byte[] into an Image object - by KajitiSouls - 2009-11-17, 03:38 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)