Source/Presentation/ShapeFill.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Drawing.Drawing2D;
using System.Text;
using System.Drawing;
using DevComponents.DotNetBar.Rendering;
namespace DevComponents.DotNetBar.Presentation
{
internal class ShapeFill : Shape
{
#region Properties
/// <summary>
/// Gets or sets the starting fill color.
/// </summary>
public Color Color1 = Color.Empty;
/// <summary>
/// Gets or sets the end fill color.
/// </summary>
public Color Color2 = Color.Empty;
/// <summary>
/// Gets or sets the gradient angle.
/// </summary>
public int GradientAngle = 90;
/// <summary>
/// Gets or sets the background color collection blend.
/// </summary>
public BackgroundColorBlendCollection BackgroundColorBlend = null;
/// <summary>
/// Gets or sets the fill gradient type.
/// </summary>
public eGradientType GradientType = eGradientType.Linear;
#endregion
#region Internal Implementation
public ShapeFill() { }
public ShapeFill(Color color1, Color color2)
{
this.Color1 = color1;
this.Color2 = color2;
}
public ShapeFill(LinearGradientColorTable table)
{
this.Color1 = table.Start;
this.Color2 = table.End;
}
public ShapeFill(Color color1)
{
this.Color1 = color1;
this.Color2 = Color.Empty;
}
public void Apply(LinearGradientColorTable table)
{
if (table == null)
{
this.Color1 = Color.Empty;
后面还有 45 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。