void OpenClyt(string file) { using (var node = NodeFactory.FromFile(file)) { layout = node.TransformWith <Binary2Clyt>().GetFormatAs <Clyt>(); } drawable.Size = new Eto.Drawing.Size((int)layout.Layout.Size.Width, (int)layout.Layout.Size.Height); drawable.Invalidate(); }
static void Export(string input, string outputYml, string outputPo) { using (Node node = NodeFactory.FromFile(input)) { node.TransformWith <Binary2Clyt>(); Clyt clyt = node.GetFormatAs <Clyt>(); using (var ymlBin = (BinaryFormat)ConvertFormat.With <Clyt2Yml>(clyt)) { ymlBin.Stream.WriteTo(outputYml); } node.TransformWith <Clyt2Po>() .TransformWith <Po2Binary>() .Stream.WriteTo(outputPo); } }