Finally had a few seconds (literally took about 15 minutes)  to fix the one
bug I had before lunch. Apparently using:
            Bitmap nonIndexed = new Bitmap(fromFile.Width, fromFile.Height,
PixelFormat.Format16bppArgb1555);
instead of:
            Bitmap nonIndexed = new Bitmap(fromFile.Width, fromFile.Height,
PixelFormat.Format16bppRgb555);
generated an Out of Memory exception with my little sample GIF (6k, 150x200,
80x80 dpi, 8 bit depth, 1 frame count).

Anyhow, up on pastebin, working code, except for that ClientSize resizing, I
didn't want to touch that, it looked rather inane to me...where are the
controls gonna go? I just commented it out. :)

http://dotnetdevelopment.pastebin.com/f34d4b6ac
http://dotnetdevelopment.pastebin.com/f377a93b5
http://dotnetdevelopment.pastebin.com/d58fdb1d8

Whee, that was fun. Back to making my first Web Control. :)

-- Peter Smith

Reply via email to