Info
Version: | 1.1.2 |
Author(s): | yangzhongke(http://www.rupeng.com) |
Last Update: | Tuesday, September 14, 2021 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/yangzhongke/CaptchaGen.NetCore |
NuGet Url: | https://www.nuget.org/packages/CaptchaGen.NetCore |
Install
Install-Package CaptchaGen.NetCore
dotnet add package CaptchaGen.NetCore
paket add CaptchaGen.NetCore
CaptchaGen.NetCore Download (Unzip the "nupkg" after downloading)
Dependencies
- System.Drawing.Common(>= 4.7.0)
Nuget Install:
Install-Package CaptchaGen.NetCore
Example Code:
string code = ImageFactory.CreateCode(5);
using (FileStream fs = File.OpenWrite("d:/1.jpg"))
using (Stream picStream = ImageFactory.BuildImage(code, 50, 100, 20,10))
{
picStream.CopyTo(fs);
}.