Skip to content

Commit 9f057cc

Browse files
committed
Initial commit
1 parent 7f25c7c commit 9f057cc

File tree

140 files changed

+164791
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+164791
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vs

ChannelMerger.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27703.2042
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChannelMerger", "ChannelMerger\ChannelMerger.csproj", "{0F56EDA9-CF7F-4C49-A67B-3FCD434D4902}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{0F56EDA9-CF7F-4C49-A67B-3FCD434D4902}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{0F56EDA9-CF7F-4C49-A67B-3FCD434D4902}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{0F56EDA9-CF7F-4C49-A67B-3FCD434D4902}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{0F56EDA9-CF7F-4C49-A67B-3FCD434D4902}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {BA1C7CCA-C9E7-4794-B66D-E74482226B05}
24+
EndGlobalSection
25+
EndGlobal

ChannelMerger/App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
5+
</startup>
6+
</configuration>

ChannelMerger/App.xaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Application x:Class="ChannelMerger.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
StartupUri="MainWindow.xaml">
5+
<Application.Resources>
6+
<ResourceDictionary>
7+
<ResourceDictionary.MergedDictionaries>
8+
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
9+
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
10+
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
11+
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
12+
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
13+
</ResourceDictionary.MergedDictionaries>
14+
</ResourceDictionary>
15+
</Application.Resources>
16+
</Application>

ChannelMerger/App.xaml.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Configuration;
4+
using System.Data;
5+
using System.Linq;
6+
using System.Threading.Tasks;
7+
using System.Windows;
8+
9+
namespace ChannelMerger
10+
{
11+
/// <summary>
12+
/// Interaction logic for App.xaml
13+
/// </summary>
14+
public partial class App : Application
15+
{
16+
}
17+
}

ChannelMerger/ChannelMerger.csproj

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{0F56EDA9-CF7F-4C49-A67B-3FCD434D4902}</ProjectGuid>
8+
<OutputType>WinExe</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>ChannelMerger</RootNamespace>
11+
<AssemblyName>ChannelMerger</AssemblyName>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
15+
<WarningLevel>4</WarningLevel>
16+
</PropertyGroup>
17+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18+
<PlatformTarget>AnyCPU</PlatformTarget>
19+
<DebugSymbols>true</DebugSymbols>
20+
<DebugType>full</DebugType>
21+
<Optimize>false</Optimize>
22+
<OutputPath>bin\Debug\</OutputPath>
23+
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<ErrorReport>prompt</ErrorReport>
25+
<WarningLevel>4</WarningLevel>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28+
<PlatformTarget>AnyCPU</PlatformTarget>
29+
<DebugType>pdbonly</DebugType>
30+
<Optimize>true</Optimize>
31+
<OutputPath>bin\Release\</OutputPath>
32+
<DefineConstants>TRACE</DefineConstants>
33+
<ErrorReport>prompt</ErrorReport>
34+
<WarningLevel>4</WarningLevel>
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<Reference Include="ControlzEx, Version=3.0.2.4, Culture=neutral, processorArchitecture=MSIL">
38+
<HintPath>..\packages\ControlzEx.3.0.2.4\lib\net45\ControlzEx.dll</HintPath>
39+
</Reference>
40+
<Reference Include="Magick.NET-Q16-AnyCPU, Version=7.5.0.0, Culture=neutral, PublicKeyToken=2004825badfa91ec, processorArchitecture=MSIL">
41+
<HintPath>..\packages\Magick.NET-Q16-AnyCPU.7.5.0.1\lib\net40\Magick.NET-Q16-AnyCPU.dll</HintPath>
42+
</Reference>
43+
<Reference Include="MahApps.Metro, Version=1.6.5.1, Culture=neutral, processorArchitecture=MSIL">
44+
<HintPath>..\packages\MahApps.Metro.1.6.5\lib\net45\MahApps.Metro.dll</HintPath>
45+
</Reference>
46+
<Reference Include="MahApps.Metro.IconPacks, Version=2.3.0.4, Culture=neutral, processorArchitecture=MSIL">
47+
<HintPath>..\packages\MahApps.Metro.IconPacks.2.3.0\lib\net45\MahApps.Metro.IconPacks.dll</HintPath>
48+
</Reference>
49+
<Reference Include="MahApps.Metro.SimpleChildWindow, Version=1.5.0.16, Culture=neutral, processorArchitecture=MSIL">
50+
<HintPath>..\packages\MahApps.Metro.SimpleChildWindow.1.5.0\lib\net45\MahApps.Metro.SimpleChildWindow.dll</HintPath>
51+
</Reference>
52+
<Reference Include="System" />
53+
<Reference Include="System.Data" />
54+
<Reference Include="System.Drawing" />
55+
<Reference Include="System.Windows.Forms" />
56+
<Reference Include="System.Windows.Interactivity, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
57+
<HintPath>..\packages\ControlzEx.3.0.2.4\lib\net45\System.Windows.Interactivity.dll</HintPath>
58+
</Reference>
59+
<Reference Include="System.Xml" />
60+
<Reference Include="Microsoft.CSharp" />
61+
<Reference Include="System.Core" />
62+
<Reference Include="System.Xml.Linq" />
63+
<Reference Include="System.Data.DataSetExtensions" />
64+
<Reference Include="System.Xaml">
65+
<RequiredTargetFramework>4.0</RequiredTargetFramework>
66+
</Reference>
67+
<Reference Include="WindowsBase" />
68+
<Reference Include="PresentationCore" />
69+
<Reference Include="PresentationFramework" />
70+
</ItemGroup>
71+
<ItemGroup>
72+
<ApplicationDefinition Include="App.xaml">
73+
<Generator>MSBuild:Compile</Generator>
74+
<SubType>Designer</SubType>
75+
</ApplicationDefinition>
76+
<Page Include="MainWindow.xaml">
77+
<Generator>MSBuild:Compile</Generator>
78+
<SubType>Designer</SubType>
79+
</Page>
80+
<Compile Include="App.xaml.cs">
81+
<DependentUpon>App.xaml</DependentUpon>
82+
<SubType>Code</SubType>
83+
</Compile>
84+
<Compile Include="helpers.cs" />
85+
<Compile Include="MainWindow.xaml.cs">
86+
<DependentUpon>MainWindow.xaml</DependentUpon>
87+
<SubType>Code</SubType>
88+
</Compile>
89+
</ItemGroup>
90+
<ItemGroup>
91+
<Compile Include="Properties\AssemblyInfo.cs">
92+
<SubType>Code</SubType>
93+
</Compile>
94+
<Compile Include="Properties\Resources.Designer.cs">
95+
<AutoGen>True</AutoGen>
96+
<DesignTime>True</DesignTime>
97+
<DependentUpon>Resources.resx</DependentUpon>
98+
</Compile>
99+
<Compile Include="Properties\Settings.Designer.cs">
100+
<AutoGen>True</AutoGen>
101+
<DependentUpon>Settings.settings</DependentUpon>
102+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
103+
</Compile>
104+
<EmbeddedResource Include="Properties\Resources.resx">
105+
<Generator>ResXFileCodeGenerator</Generator>
106+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
107+
</EmbeddedResource>
108+
<None Include="packages.config" />
109+
<None Include="Properties\Settings.settings">
110+
<Generator>SettingsSingleFileGenerator</Generator>
111+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
112+
</None>
113+
<AppDesigner Include="Properties\" />
114+
</ItemGroup>
115+
<ItemGroup>
116+
<None Include="App.config" />
117+
</ItemGroup>
118+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
119+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
120+
Other similar extension points exist, see Microsoft.Common.targets.
121+
<Target Name="BeforeBuild">
122+
</Target>
123+
<Target Name="AfterBuild">
124+
</Target>
125+
-->
126+
</Project>

ChannelMerger/MainWindow.xaml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<Controls:MetroWindow x:Class="ChannelMerger.MainWindow"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls"
5+
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
6+
Title="MainWindow"
7+
Height="350"
8+
Width="525">
9+
<Grid Margin="16" Background="White">
10+
<Grid.Effect>
11+
<DropShadowEffect Direction="0" ShadowDepth="0" BlurRadius="10"/>
12+
</Grid.Effect>
13+
<Grid.RowDefinitions>
14+
<RowDefinition Height="40"/>
15+
<RowDefinition Height="40"/>
16+
<RowDefinition Height="40"/>
17+
<RowDefinition Height="40"/>
18+
<RowDefinition Height="8"/>
19+
<RowDefinition Height="40"/>
20+
<RowDefinition Height="40"/>
21+
<RowDefinition/>
22+
</Grid.RowDefinitions>
23+
<Grid.ColumnDefinitions>
24+
<ColumnDefinition Width="90"/>
25+
<ColumnDefinition/>
26+
</Grid.ColumnDefinitions>
27+
28+
<Button Name="redBtn" Tag="r" Grid.Row="0" Grid.Column="0" Margin="4" Click="ChannelBtn_Click" Padding="0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Center">
29+
<Grid Margin="8,0,0,0">
30+
<Grid.ColumnDefinitions>
31+
<ColumnDefinition Width="16px"/>
32+
<ColumnDefinition/>
33+
</Grid.ColumnDefinitions>
34+
<iconPacks:PackIconModern Kind="LayerAdd" />
35+
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="8,0,0,0">RED</TextBlock>
36+
</Grid>
37+
</Button>
38+
39+
<Button Name="greenBtn" Tag="g" Grid.Row="1" Grid.Column="0" Margin="4" Click="ChannelBtn_Click" Padding="0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Center">
40+
<Grid Margin="8,0,0,0">
41+
<Grid.ColumnDefinitions>
42+
<ColumnDefinition Width="16px"/>
43+
<ColumnDefinition/>
44+
</Grid.ColumnDefinitions>
45+
<iconPacks:PackIconModern Kind="LayerAdd" />
46+
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="8,0,0,0">GREEN</TextBlock>
47+
</Grid>
48+
</Button>
49+
50+
<Button Name="blueBtn" Tag="b" Grid.Row="2" Grid.Column="0" Margin="4" Click="ChannelBtn_Click" Padding="0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Center">
51+
<Grid Margin="8,0,0,0">
52+
<Grid.ColumnDefinitions>
53+
<ColumnDefinition Width="16px"/>
54+
<ColumnDefinition/>
55+
</Grid.ColumnDefinitions>
56+
<iconPacks:PackIconModern Kind="LayerAdd" />
57+
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="8,0,0,0">BLUE</TextBlock>
58+
</Grid>
59+
</Button>
60+
61+
<Button Name="alphaBtn" Tag="a" Grid.Row="3" Grid.Column="0" Margin="4" Click="ChannelBtn_Click" Padding="0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Center">
62+
<Grid Margin="8,0,0,0">
63+
<Grid.ColumnDefinitions>
64+
<ColumnDefinition Width="16px"/>
65+
<ColumnDefinition/>
66+
</Grid.ColumnDefinitions>
67+
<iconPacks:PackIconModern Kind="LayerAdd" />
68+
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="8,0,0,0">ALPHA</TextBlock>
69+
</Grid>
70+
</Button>
71+
72+
<Button Name="outBtn" Tag="a" Grid.Row="5" Grid.Column="0" Margin="4" Click="OutputBtn_Click" Padding="0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Center">
73+
<Grid Margin="8,0,0,0">
74+
<Grid.ColumnDefinitions>
75+
<ColumnDefinition Width="16px"/>
76+
<ColumnDefinition/>
77+
</Grid.ColumnDefinitions>
78+
<iconPacks:PackIconMaterial Kind="FolderDownload" />
79+
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="8,0,0,0">OUTPUT</TextBlock>
80+
</Grid>
81+
</Button>
82+
83+
<TextBox Name="redPath" IsReadOnly="True" Grid.Row="0" Grid.Column="1" Margin="4" VerticalContentAlignment="Center"></TextBox>
84+
<TextBox Name="greenPath" IsReadOnly="True" Grid.Row="1" Grid.Column="1" Margin="4" VerticalContentAlignment="Center"></TextBox>
85+
<TextBox Name="bluePath" IsReadOnly="True" Grid.Row="2" Grid.Column="1" Margin="4" VerticalContentAlignment="Center"></TextBox>
86+
<TextBox Name="alphaPath" IsReadOnly="True" Grid.Row="3" Grid.Column="1" Margin="4" VerticalContentAlignment="Center"></TextBox>
87+
88+
<Grid Grid.Row="5" Grid.Column="1">
89+
<Grid.ColumnDefinitions>
90+
<ColumnDefinition Width="3*"/>
91+
<ColumnDefinition/>
92+
</Grid.ColumnDefinitions>
93+
<TextBox Name="outputPath" IsReadOnly="True" Margin="4" VerticalContentAlignment="Center"></TextBox>
94+
<TextBox Name="fileName" Grid.Column="1" Margin="4" Text="result.png" VerticalContentAlignment="Center"></TextBox>
95+
96+
</Grid>
97+
98+
<Button Name="mergeBtn" Grid.Row="6" Grid.Column="1" Margin="4" Click="MergeBtn_Click">Merge</Button>
99+
100+
</Grid>
101+
</Controls:MetroWindow>

0 commit comments

Comments
 (0)