public void GenerateXsd(QuantumDepth depth) { AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve += ResolveAssembly; XsdGenerator generator = new XsdGenerator(depth); generator.Generate(); }
public MagickTypes(QuantumDepth depth) { string folderName = GetFolderName(depth); string quantumName = GetQuantumName(depth); AssemblyFile = PathHelper.GetFullPath(@"Source\Magick.NET\bin\" + folderName + @"\x86\Magick.NET-" + quantumName + @"-x86.dll"); MagickNET = LoadAssembly(); Depth = depth; }
//=========================================================================================== private XsdGenerator(QuantumDepth depth) { _Depth = depth; _GraphicsMagickNET = new GraphicsMagickNET(depth); _Namespaces = new XmlNamespaceManager(new NameTable()); _Namespaces.AddNamespace("xs", _Namespace.ToString()); }
private static void GenerateXsd(QuantumDepth depth) { AppDomain domain = CreateDomain(); ApplicationProxy proxy = CreateProxy(domain); proxy.GenerateXsd(depth); AppDomain.Unload(domain); }
private string GetQuantumName(QuantumDepth depth) { switch (depth) { case QuantumDepth.Q8: case QuantumDepth.Q16: return depth.ToString(); case QuantumDepth.Q16HDRI: return "Q16-HDRI"; default: throw new NotImplementedException(); } }
private static string GetFolderName(QuantumDepth depth) { switch (depth) { case QuantumDepth.Q8: return "ReleaseQ8"; case QuantumDepth.Q16: return "ReleaseQ16"; case QuantumDepth.Q16HDRI: return "ReleaseQ16-HDRI"; default: throw new NotImplementedException(); } }
private static string GetQuantumName(QuantumDepth depth) { switch (depth) { case QuantumDepth.Q8: case QuantumDepth.Q16: return(depth.ToString()); case QuantumDepth.Q16HDRI: return("Q16-HDRI"); default: throw new NotImplementedException(); } }
private static string GetFolderName(QuantumDepth depth) { switch (depth) { case QuantumDepth.Q8: return("ReleaseQ8"); case QuantumDepth.Q16: return("ReleaseQ16"); case QuantumDepth.Q16HDRI: return("ReleaseQ16-HDRI"); default: throw new NotImplementedException(); } }
public XsdGenerator(QuantumDepth depth) { _Depth = depth; _Types = new MagickTypes(depth); _Namespaces = new XmlNamespaceManager(new NameTable()); _Namespaces.AddNamespace("xs", _Namespace.ToString()); }
public MagickScriptTypes(QuantumDepth depth) : base(depth) { }
//=========================================================================================== public GraphicsMagickNET(QuantumDepth depth) { string assemblyFile = AppDomain.CurrentDomain.BaseDirectory + @"..\..\..\..\GraphicsMagick.NET\bin\" + GetFolderName(depth) + @"\Win32\GraphicsMagick.NET-x86.dll"; if (!File.Exists(assemblyFile)) throw new ArgumentException("Unable to find file: " + assemblyFile, "assemblyFile"); _GraphicsMagickNET = Assembly.LoadFile(assemblyFile); Depth = depth; }
//=========================================================================================== protected FileGenerator(string outputFolder, QuantumDepth depth) { OutputFolder = SetOutputFolder(outputFolder + "\\" + GraphicsMagickNET.GetFolderName(depth)); _GraphicsMagickNET = new GraphicsMagickNET(depth); }
public DrawableTypes(QuantumDepth depth) : base(depth) { LoadComments(); }
public MagickTypes(QuantumDepth depth) { _Core = LoadAssembly(@"..\..\..\..\Magick.NET.Core\bin\Release\AnyCPU\Magick.NET.Core.dll"); LoadAssembly(@"..\..\..\..\Magick.NET.Wrapper\bin\" + GetFolderName(depth) + @"\Win32\Magick.NET.Wrapper-x86.dll"); _MagickNET = LoadAssembly(@"..\..\..\..\Magick.NET\bin\" + GetFolderName(depth) + @"\x86\Magick.NET-x86.dll"); _Depth = depth; }
//=========================================================================================== private static void Generate(QuantumDepth depth) { ClassGenerator generator = new ClassGenerator(depth); foreach (Type type in generator._Types) { if (!GraphicsMagickNET.IsQuantumDependant(type)) continue; generator.Generate(type); generator.CopyDocumentation(); } }
//=========================================================================================== protected FileGenerator(string outputFolder, QuantumDepth depth) { OutputFolder = SetOutputFolder(outputFolder + "\\" + GraphicsMagickNET.GetFolderName(depth)); _GraphicsMagickNET = new GraphicsMagickNET(depth); }
//=========================================================================================== private ClassGenerator(QuantumDepth depth) : base(@"GraphicsMagick.NET.AnyCPU\Generated", depth) { _Types = GetTypes(); }
public MagickScriptTypes(QuantumDepth depth) : base(depth) { }
//=========================================================================================== private static void Generate(QuantumDepth depth) { XsdGenerator generator = new XsdGenerator(depth); generator.WriteDocument(); }
public DrawableTypes(QuantumDepth depth) : base(depth) { LoadComments(); }
//=========================================================================================== private static void Generate(QuantumDepth depth) { XsdGenerator generator = new XsdGenerator(depth); generator.WriteDocument(); }