src/ZKEACMS/Captcha/IImageGenerator.cs

(完整代码) 951B

/* http://www.zkea.net/ 
 * Copyright (c) ZKEASOFT. All rights reserved. 
 * http://www.zkea.net/licenses */


using SixLabors.Fonts;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Formats;

namespace ZKEACMS.Captcha
{
    public interface IImageGenerator
    {
        FontFamily[] FontFamilies { get; set; }
        Color[] TextColor { get; set; }
        Color[] DrawLinesColor { get; set; }
        float MinLineThickness { get; set; }
        float MaxLineThickness { get; set; }
        ushort Width { get; set; } 
        ushort Height { get; set; } 
        ushort NoiseRate { get; set; } 
        Color[] NoiseRateColor { get; set; } 
        byte FontSize { get; set; } 
        FontStyle FontStyle { get; set; } 
        EncoderTypes EncoderType { get; set; }
        IImageEncoder Encoder { get; }
        byte DrawLines { get; set; } 
        byte MaxRotationDegrees { get; set; }

        byte[] Generate(string text);
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。