public void LoadFrom(Stream stream) { BinaryReader reader = new BinaryReader(stream); maxGradient = new GradientNEW(stream); minGradient = new GradientNEW(stream); minColor = new Color4(reader.ReadInt32()); maxColor = new Color4(reader.ReadInt32()); minMaxState = reader.ReadInt16(); reader.ReadBytes(2); }