diff --git a/Samples/RuntimeUpdates/Lib/Svg.dll b/Samples/RuntimeUpdates/Lib/Svg.dll new file mode 100644 index 0000000000000000000000000000000000000000..5291f2edea65975b918d16b2d46d6d887d233866 Binary files /dev/null and b/Samples/RuntimeUpdates/Lib/Svg.dll differ diff --git a/Samples/RuntimeUpdates/Program.cs b/Samples/RuntimeUpdates/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..d7b440a5f28abc9ca43ba7ca366e7d9d02c3167b --- /dev/null +++ b/Samples/RuntimeUpdates/Program.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Svg; +using System.IO; +using System.Drawing; + +namespace SvgSample +{ + class Program + { + static void Main(string[] args) + { + var sampleDoc = SvgDocument.Open(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"..\..\sample.svg")); + sampleDoc.GetElementById("Commonwealth_Star").Fill = new SvgColourServer(Color.Black); + sampleDoc.Draw().Save(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"..\..\sample.png")); + } + } +} diff --git a/Samples/RuntimeUpdates/Properties/AssemblyInfo.cs b/Samples/RuntimeUpdates/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000000000000000000000000000000000..91f00b39d28b38a1da31d1e58c9f40d8da720f46 --- /dev/null +++ b/Samples/RuntimeUpdates/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("SvgSample")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("SvgSample")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("b1f81f97-b72e-487e-a219-bc5245ac580d")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Samples/RuntimeUpdates/Sample.svg b/Samples/RuntimeUpdates/Sample.svg new file mode 100644 index 0000000000000000000000000000000000000000..f99a38ed3f23dd3f7a626d6adf598f777475a006 --- /dev/null +++ b/Samples/RuntimeUpdates/Sample.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/Samples/RuntimeUpdates/SvgSample.csproj b/Samples/RuntimeUpdates/SvgSample.csproj new file mode 100644 index 0000000000000000000000000000000000000000..7bfd9ce43275c59cc812a2094ade0de7e85e5a12 --- /dev/null +++ b/Samples/RuntimeUpdates/SvgSample.csproj @@ -0,0 +1,75 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {9782B15C-D0BA-4A4E-9A03-F97082AF9256} + Exe + Properties + SvgSample + SvgSample + v4.0 + + + 512 + SAK + SAK + SAK + SAK + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + Lib\Svg.dll + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Samples/RuntimeUpdates/SvgSample.csproj.vspscc b/Samples/RuntimeUpdates/SvgSample.csproj.vspscc new file mode 100644 index 0000000000000000000000000000000000000000..feffdecaa492c865e333a42c6e995508aa9fabfd --- /dev/null +++ b/Samples/RuntimeUpdates/SvgSample.csproj.vspscc @@ -0,0 +1,10 @@ +"" +{ +"FILE_VERSION" = "9237" +"ENLISTMENT_CHOICE" = "NEVER" +"PROJECT_FILE_RELATIVE_PATH" = "" +"NUMBER_OF_EXCLUDED_FILES" = "0" +"ORIGINAL_PROJECT_FILE_PATH" = "" +"NUMBER_OF_NESTED_PROJECTS" = "0" +"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" +} diff --git a/Samples/RuntimeUpdates/app.config b/Samples/RuntimeUpdates/app.config new file mode 100644 index 0000000000000000000000000000000000000000..cb2586beb1dbb3ea3773ec7384aa1f440c2e1ba8 --- /dev/null +++ b/Samples/RuntimeUpdates/app.config @@ -0,0 +1,3 @@ + + +