public FileStreamResult Image() { CaptchaResult result = CaptchaImageGenerator.GetImage(200, 100, "HELLO"); Stream s = new MemoryStream(result.CaptchaByteData); return(new FileStreamResult(s, "image/png")); }
public void Test() { CaptchaResult result = CaptchaImageGenerator.GetImage(200, 100, "HELLO"); }