private static Bitmap GenImg(string code)
 {
     return(ValidationCodeImageCreator.GenImg(code, Color.DimGray, Color.White));//Color.DimGray ,Gainsboro
 }
 private static Bitmap GenImg(string code, Color foreColor, Color backColor)
 {
     return(ValidationCodeImageCreator.GenImg(code, foreColor, backColor, new Font("Courier New", 18, FontStyle.Bold)));
 }
 public static Bitmap Generate(int codeLength, out string validationCode)
 {
     validationCode = ValidationCodeImageCreator.GenCode(codeLength);
     return(ValidationCodeImageCreator.GenImg(validationCode));
 }