Source/Rendering/ColorFactory.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Drawing;
using System.Text;
namespace DevComponents.DotNetBar.Rendering
{
/// <summary>
/// Represents the class used to create Color objects.
/// </summary>
public class ColorFactory
{
#region Private Variables
#endregion
#region Constructor
/// <summary>
/// Creates new instance of the object.
/// </summary>
public ColorFactory() { }
#endregion
#region Internal Implementation
public virtual Color GetColor(int color)
{
return ColorScheme.GetColor(color);
}
public virtual Color GetColor(int alpha, int color)
{
return ColorScheme.GetColor(alpha, color);
}
public virtual Color GetColor(Color color)
{
return color;
}
public virtual Color GetColor(string argb)
{
return ColorScheme.GetColor(argb);
}
public static readonly ColorFactory Empty = new ColorFactory();
#endregion
}
/// <summary>
/// Represents the class used to create Color objects blended based on base color.
/// </summary>
public class ColorBlendFactory : ColorFactory
{
#region Private Variables
private Color m_BlendColor = Color.Empty;
#endregion
#region Constructor
/// <summary>
/// Creates new instance of the object.
/// </summary>
后面还有 65 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。