📄 rgb.cs
字号:
namespace Imps.Utils
{
using System;
using System.Drawing;
public class RGB
{
public const short B = 0;
public byte Blue;
public const short G = 1;
public byte Green;
public const short R = 2;
public byte Red;
public RGB()
{
}
public RGB(byte red, byte green, byte blue)
{
this.Red = red;
this.Green = green;
this.Blue = blue;
}
public System.Drawing.Color Color
{
get
{
return System.Drawing.Color.FromArgb(this.Red, this.Green, this.Blue);
}
set
{
this.Red = value.R;
this.Green = value.G;
this.Blue = value.B;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -