コード例 #1
0
        internal static GuiColourMatrix FromXml(XElement xml)
        {
            var r = GuiColourMatrixEntry.FromXml(xml.Element("MatrixRed"));
            var g = GuiColourMatrixEntry.FromXml(xml.Element("MatrixGreen"));
            var b = GuiColourMatrixEntry.FromXml(xml.Element("MatrixBlue"));

            return(new GuiColourMatrix(r, g, b)
            {
                LocalisationName = xml.Element("LocalisationName")?.Value,
            });
        }
コード例 #2
0
 private GuiColourMatrix(GuiColourMatrixEntry r, GuiColourMatrixEntry g, GuiColourMatrixEntry b)
 {
     _v[0] = r;
     _v[1] = g;
     _v[2] = b;
 }