You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
461 B
C#
20 lines
461 B
C#
using System.Drawing;
|
|
using DotNetCTFDumper.Utils;
|
|
|
|
namespace DotNetCTFDumper.MMFParser.EXE.Loaders.Events.Parameters
|
|
{
|
|
class Colour : ParameterCommon
|
|
{
|
|
public Color Value;
|
|
|
|
public Colour(ByteReader reader) : base(reader) { }
|
|
public override void Read()
|
|
{
|
|
var bytes = Reader.ReadBytes(4);
|
|
Value = Color.FromArgb(bytes[0], bytes[1], bytes[2]);
|
|
|
|
}
|
|
|
|
}
|
|
}
|