mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-20 08:26:36 +08:00
项目结构调整
This commit is contained in:
25
Others/WpfAnimatedGif/Decoding/GifColor.cs
Normal file
25
Others/WpfAnimatedGif/Decoding/GifColor.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user