mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
26 lines
580 B
C#
26 lines
580 B
C#
namespace WpfAnimatedGif.Decoding
|
|
{
|
|
internal struct GifColor
|
|
{
|
|
private readonly byte _r;
|
|
private readonly byte _g;
|
|
private readonly byte _b;
|
|
|
|
internal GifColor(byte r, byte g, byte b)
|
|
{
|
|
_r = r;
|
|
_g = g;
|
|
_b = b;
|
|
}
|
|
|
|
public byte R { get { return _r; } }
|
|
public byte G { get { return _g; } }
|
|
public byte B { get { return _b; } }
|
|
|
|
public override string ToString()
|
|
{
|
|
return string.Format("#{0:x2}{1:x2}{2:x2}", _r, _g, _b);
|
|
}
|
|
}
|
|
}
|