Skip to content

Commit

Permalink
Fixed the name space in Example 2
Browse files Browse the repository at this point in the history
Added another example, to show how emulate the composite images
  • Loading branch information
randym32 committed Jun 7, 2020
1 parent 53a20bc commit 5c850f6
Show file tree
Hide file tree
Showing 23 changed files with 2,930 additions and 38 deletions.
6 changes: 6 additions & 0 deletions Anki.Resources.Samples.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Example 1 - Playing Sounds"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Example 2 - Playing Sprite Sequences", "Example 2 - Playing Sprite Sequences\Example 2 - Playing Sprite Sequences.csproj", "{4F10F21C-2965-4F44-A3C6-09C5DE7387F3}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Example 3 - Composite Image", "Example 3 - Composite Image\Example 3 - Composite Image.csproj", "{74AFF282-6882-4DCF-8C63-309FB29671EE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -21,6 +23,10 @@ Global
{4F10F21C-2965-4F44-A3C6-09C5DE7387F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4F10F21C-2965-4F44-A3C6-09C5DE7387F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4F10F21C-2965-4F44-A3C6-09C5DE7387F3}.Release|Any CPU.Build.0 = Release|Any CPU
{74AFF282-6882-4DCF-8C63-309FB29671EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{74AFF282-6882-4DCF-8C63-309FB29671EE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{74AFF282-6882-4DCF-8C63-309FB29671EE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{74AFF282-6882-4DCF-8C63-309FB29671EE}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Anki.Resources.SDK" Version="0.0.1" />
<PackageReference Include="Anki.Resources.SDK" Version="0.0.3" />
<PackageReference Include="NAudio" Version="1.10.0" />
<PackageReference Include="NAudio.Vorbis" Version="1.2.0" />
<PackageReference Include="NVorbis" Version="0.10.1" />
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("Example 1 - Playing Sounds")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Example 1 - Playing Sounds")]
[assembly: System.Reflection.AssemblyTitleAttribute("Example 1 - Playing Sounds")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// Generated by the MSBuild WriteCodeFragment class.

Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"dependencies": {
"Anki.Resources.SDK": {
"target": "Package",
"version": "[0.0.1, )"
"version": "[0.0.3, )"
},
"NAudio": {
"target": "Package",
Expand Down
17 changes: 9 additions & 8 deletions Example 1 - Playing Sounds/obj/project.assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": 3,
"targets": {
".NETCoreApp,Version=v3.1": {
"Anki.Resources.SDK/0.0.1": {
"Anki.Resources.SDK/0.0.3": {
"type": "package",
"dependencies": {
"NAudio": "1.10.0",
Expand Down Expand Up @@ -499,18 +499,19 @@
}
},
"libraries": {
"Anki.Resources.SDK/0.0.1": {
"sha512": "Ydh5CLYqTG1MGkFV/CF2WLlCsQ2U3HaelibdDKGyhRLTGF7qITw+tE91KjnRC2FL3cNwSdcztR377dh44hWzGA==",
"Anki.Resources.SDK/0.0.3": {
"sha512": "ZH1MjX37ExrtKS4sRM6WD+oD3jmvKihRAcc5rMYwAmcXICW1hadH8LL5SJ76aGo1vcxOhpO0SqculshhT/WTcA==",
"type": "package",
"path": "anki.resources.sdk/0.0.1",
"path": "anki.resources.sdk/0.0.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"LICENSE",
"anki.resources.sdk.0.0.1.nupkg.sha512",
"anki.resources.sdk.0.0.3.nupkg.sha512",
"anki.resources.sdk.nuspec",
"lib/netstandard2.1/Anki.Resources.SDK.dll",
"lib/netstandard2.1/Anki.Resources.SDK.xml"
"lib/netstandard2.1/Anki.Resources.SDK.xml",
"logo-big.png"
]
},
"Microsoft.NETCore.Platforms/3.1.1": {
Expand Down Expand Up @@ -2162,7 +2163,7 @@
},
"projectFileDependencyGroups": {
".NETCoreApp,Version=v3.1": [
"Anki.Resources.SDK >= 0.0.1",
"Anki.Resources.SDK >= 0.0.3",
"NAudio >= 1.10.0",
"NAudio.Vorbis >= 1.2.0",
"NVorbis >= 0.10.1"
Expand Down Expand Up @@ -2207,7 +2208,7 @@
"dependencies": {
"Anki.Resources.SDK": {
"target": "Package",
"version": "[0.0.1, )"
"version": "[0.0.3, )"
},
"NAudio": {
"target": "Package",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Anki.Resources.SDK" Version="0.0.2" />
<PackageReference Include="Anki.Resources.SDK" Version="0.0.3" />
</ItemGroup>

</Project>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"dependencies": {
"Anki.Resources.SDK": {
"target": "Package",
"version": "[0.0.2, )"
"version": "[0.0.3, )"
}
},
"imports": [
Expand Down
14 changes: 7 additions & 7 deletions Example 2 - Playing Sprite Sequences/obj/project.assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": 3,
"targets": {
".NETCoreApp,Version=v3.1": {
"Anki.Resources.SDK/0.0.2": {
"Anki.Resources.SDK/0.0.3": {
"type": "package",
"dependencies": {
"NAudio": "1.10.0",
Expand Down Expand Up @@ -494,15 +494,15 @@
}
},
"libraries": {
"Anki.Resources.SDK/0.0.2": {
"sha512": "ySY7nFNrYf7I1rGIi9o2hv7hKBDQcpLFtO8a/dnt1/kr/nH3vfrLMJTqf/Rf+3HRYsLS0u9TyYQO6hxk1AdIQQ==",
"Anki.Resources.SDK/0.0.3": {
"sha512": "ZH1MjX37ExrtKS4sRM6WD+oD3jmvKihRAcc5rMYwAmcXICW1hadH8LL5SJ76aGo1vcxOhpO0SqculshhT/WTcA==",
"type": "package",
"path": "anki.resources.sdk/0.0.2",
"path": "anki.resources.sdk/0.0.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"LICENSE",
"anki.resources.sdk.0.0.2.nupkg.sha512",
"anki.resources.sdk.0.0.3.nupkg.sha512",
"anki.resources.sdk.nuspec",
"lib/netstandard2.1/Anki.Resources.SDK.dll",
"lib/netstandard2.1/Anki.Resources.SDK.xml",
Expand Down Expand Up @@ -2158,7 +2158,7 @@
},
"projectFileDependencyGroups": {
".NETCoreApp,Version=v3.1": [
"Anki.Resources.SDK >= 0.0.2"
"Anki.Resources.SDK >= 0.0.3"
]
},
"packageFolders": {
Expand Down Expand Up @@ -2200,7 +2200,7 @@
"dependencies": {
"Anki.Resources.SDK": {
"target": "Package",
"version": "[0.0.2, )"
"version": "[0.0.3, )"
}
},
"imports": [
Expand Down
20 changes: 20 additions & 0 deletions Example 3 - Composite Image/Example 3 - Composite Image.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>Example_3___Composite_Image</RootNamespace>
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Anki.Resources.SDK" Version="0.0.3" />
</ItemGroup>

<ItemGroup>
<Reference Include="Anki.Resources.SDK">
<HintPath>..\..\..\Anki.Resources.SDK\bin\Debug\netstandard2.1\Anki.Resources.SDK.dll</HintPath>
</Reference>
</ItemGroup>

</Project>
25 changes: 25 additions & 0 deletions Example 3 - Composite Image/Example 3 - Composite Image.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30128.74
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Example 3 - Composite Image", "Example 3 - Composite Image.csproj", "{33BBAA7C-5ABC-4122-9B5F-223A40CB96BD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{33BBAA7C-5ABC-4122-9B5F-223A40CB96BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{33BBAA7C-5ABC-4122-9B5F-223A40CB96BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{33BBAA7C-5ABC-4122-9B5F-223A40CB96BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{33BBAA7C-5ABC-4122-9B5F-223A40CB96BD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1C0D0A8E-A90E-4F0C-86B7-72D09E8EBC4F}
EndGlobalSection
EndGlobal
108 changes: 108 additions & 0 deletions Example 3 - Composite Image/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5c850f6

Please sign in to comment.