Java conversion help
I am converting the following code from java to c#:
source = new MemoryImageSource(width, height, pixel, 0, width);
source.setAnimated(true);
toolkit = Toolkit.getDefaultToolkit();
image = toolkit.createImage(source);
I am having a problem with the following code:
BinaryFormatter b = new BinaryFormatter();
System.IO.MemoryStream istream = new System.IO.MemoryStream();
b.Serialize(istream, pixel);
image = System.Drawing.Image.FromStream(istream);
I get the error "Invalid Parameter Used." when trying to use the fromstream method.
Any ideas?

spgilmoreRank #1,616 · 964 reputationPosted May 28, 2004, 8:59 AM EDT
iwelsh10 reputationPosted May 28, 2004, 10:49 AM EDT
spgilmoreRank #1,616 · 964 reputationPosted Jun 1, 2004, 4:10 PM EDT
iwelsh10 reputationPosted Jun 2, 2004, 12:38 PM EDT