oh, more code (no new-liners now): private void Bw_DoWork(object sender, DoWorkEventArgs e) { try { string url = (string)e.Argument; int cKey = new Random().Next(1, 999999); bwKey = cKey; new Thread(() => { Thread.Sleep(5000); if (bwKey == cKey) { Debug.Print("Restarting BW"); bw.CancelAsync(); InitBW(); bw.RunWorkerAsync(url); } }).Start(); FileConverter fc = new FileConverter(); if (url.Contains(".gif")) url = fc.GifToAPng(url); base64Image = fc.ImageToBase64("png", url); e.Result = url; } catch (Exception ex) { Debug.Print("ERROR: " + ex.GetType().Name + ": " + ex.Message + "\n\n" + ex.StackTrace); } }
direct image link | download PNG | edit this image | share on r/pam
Description:
CREATOR ID: | af2d1b |
VIEWS: | 87 |
AGE: | 4 years old |
PIXEL ART GALLERY
PIXEL ART COMMUNITY