Generate captcha images based on dotNET.
用于生成图形验证码的开源.NET库。
| Name | Description | NugetPackage |
|---|---|---|
| CaptchaN.Abstractions | Abstractions module | |
| CaptchaN.Drawing.ImageSharp | Powered by ImageSharp |
using CaptchaN.Abstractions;
using CaptchaN.Drawing.ImageSharp;
builder.Services.AddCaptchaN()
.AddDefaultCodeTextGenerator()
.AddPaintConfig(builder.Configuration.GetSection(nameof(PaintConfig)))
.AddImageSharpPainter(builder.Configuration.GetSection("ImageSharpPainter"));
Fonts.UseDirectoryFonts(new(Path.Combine(builder.Environment.ContentRootPath, "Fonts")));Please see Wiki and Samples for details.
Issues and pull requests are welcomed if you have any questions!
如果您有任何疑问,欢迎提交Issue和PR!
