add flycapture
This commit is contained in:
154
Lib/FlyCapture2/src/EventsEx_CSharp/EventsEx_CSharp_2010.csproj
Normal file
154
Lib/FlyCapture2/src/EventsEx_CSharp/EventsEx_CSharp_2010.csproj
Normal file
@@ -0,0 +1,154 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<FC2Version>2.7.3.0</FC2Version>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{32918C0A-9188-4ED0-A7BF-C733C5F70A21}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>EventsEx_CSharp</RootNamespace>
|
||||
<AssemblyName>EventsEx_CSharp</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>2.0</OldToolsVersion>
|
||||
<UpgradeBackupLocation />
|
||||
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<Choose>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Release|AnyCPU' And Exists('..\..\bin') And !Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Release|x86' And Exists('..\..\bin')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managed, Version=$(FC2Version), Culture=neutral, processorArchitecture=x86">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\bin\FlyCapture2Managed_v100.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Debug|AnyCPU' And Exists('..\..\bin') And !Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Debug|x86' And Exists('..\..\bin')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managed, Version=$(FC2Version), Culture=neutral, processorArchitecture=x86">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\bin\FlyCapture2Managedd_v100.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Release|AnyCPU' And Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Release|x64' And Exists('..\..\bin64')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managed, Version=$(FC2Version), Culture=neutral, processorArchitecture=AMD64">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\bin64\FlyCapture2Managed_v100.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Debug|AnyCPU' And Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Debug|x64' And Exists('..\..\bin64')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managed, Version=$(FC2Version), Culture=neutral, processorArchitecture=AMD64">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\bin64\FlyCapture2Managedd_v100.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
</Choose>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>
|
||||
IF $(Platform)==x86 (
|
||||
copy "$(ProjectDir)..\..\bin\libiomp5md.dll" "$(TargetDir)"
|
||||
IF $(ConfigurationName)==Debug (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin\$(TargetName)d$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin\FlyCapture2d_v100.dll" "$(TargetDir)"
|
||||
) ELSE (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin\$(TargetFileName)"
|
||||
copy "$(ProjectDir)..\..\bin\FlyCapture2_v100.dll" "$(TargetDir)"
|
||||
)
|
||||
) ELSE IF $(Platform)==x64 (
|
||||
copy "$(ProjectDir)..\..\bin64\libiomp5md.dll" "$(TargetDir)"
|
||||
IF $(ConfigurationName)==Debug (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin64\$(TargetName)d$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin64\FlyCapture2d_v100.dll" "$(TargetDir)"
|
||||
) ELSE (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin64\$(TargetFileName)"
|
||||
copy "$(ProjectDir)..\..\bin64\FlyCapture2_v100.dll" "$(TargetDir)"
|
||||
)
|
||||
)
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
32
Lib/FlyCapture2/src/EventsEx_CSharp/EventsEx_CSharp_2010.sln
Normal file
32
Lib/FlyCapture2/src/EventsEx_CSharp/EventsEx_CSharp_2010.sln
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Studio 2010
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventsEx_CSharp_2010", "EventsEx_CSharp_2010.csproj", "{32918C0A-9188-4ED0-A7BF-C733C5F70A21}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{32918C0A-9188-4ED0-A7BF-C733C5F70A21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{32918C0A-9188-4ED0-A7BF-C733C5F70A21}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{32918C0A-9188-4ED0-A7BF-C733C5F70A21}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{32918C0A-9188-4ED0-A7BF-C733C5F70A21}.Debug|x64.Build.0 = Debug|x64
|
||||
{32918C0A-9188-4ED0-A7BF-C733C5F70A21}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{32918C0A-9188-4ED0-A7BF-C733C5F70A21}.Debug|x86.Build.0 = Debug|x86
|
||||
{32918C0A-9188-4ED0-A7BF-C733C5F70A21}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{32918C0A-9188-4ED0-A7BF-C733C5F70A21}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{32918C0A-9188-4ED0-A7BF-C733C5F70A21}.Release|x64.ActiveCfg = Release|x64
|
||||
{32918C0A-9188-4ED0-A7BF-C733C5F70A21}.Release|x64.Build.0 = Release|x64
|
||||
{32918C0A-9188-4ED0-A7BF-C733C5F70A21}.Release|x86.ActiveCfg = Release|x86
|
||||
{32918C0A-9188-4ED0-A7BF-C733C5F70A21}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,131 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{F79B77DA-6327-E59E-6C38-6893D842419F}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>EventsEx_CSharp</RootNamespace>
|
||||
<AssemblyName>EventsEx_CSharp</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(PlatformToolset)\x86\Debug\</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin64\Debug\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(PlatformToolset)\x64\Debug\</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(PlatformToolset)\x86\Release\</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin64\Release\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(PlatformToolset)\x64\Release\</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<Choose>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Release|AnyCPU' And Exists('..\..\bin') And !Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Release|x86' And Exists('..\..\bin')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managed_v120">
|
||||
<HintPath>..\..\bin\vs2013\FlyCapture2Managed_v120.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Debug|AnyCPU' And Exists('..\..\bin') And !Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Debug|x86' And Exists('..\..\bin')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managedd_v120">
|
||||
<HintPath>..\..\bin\vs2013\FlyCapture2Managedd_v120.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Release|AnyCPU' And Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Release|x64' And Exists('..\..\bin64')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managed_v120">
|
||||
<HintPath>..\..\bin64\vs2013\FlyCapture2Managed_v120.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Debug|AnyCPU' And Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Debug|x64' And Exists('..\..\bin64')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managedd_v120">
|
||||
<HintPath>..\..\bin64\vs2013\FlyCapture2Managedd_v120.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
</Choose>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>IF $(Platform)==x86 (
|
||||
copy "$(ProjectDir)..\..\bin\vs2013\libiomp5md.dll" "$(TargetDir)"
|
||||
IF $(ConfigurationName)==Debug (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin\vs2013\$(TargetName)d_v120$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin\vs2013\FlyCapture2d_v120.dll" "$(TargetDir)"
|
||||
) ELSE (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin\vs2013\$(TargetName)_v120$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin\vs2013\FlyCapture2_v120.dll" "$(TargetDir)"
|
||||
)
|
||||
) ELSE IF $(Platform)==x64 (
|
||||
copy "$(ProjectDir)..\..\bin64\vs2013\libiomp5md.dll" "$(TargetDir)"
|
||||
IF $(ConfigurationName)==Debug (copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin64\vs2013\$(TargetName)d_v120$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin64\vs2013\FlyCapture2d_v120.dll" "$(TargetDir)"
|
||||
) ELSE (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin64\vs2013\$(TargetName)_v120$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin64\vs2013\FlyCapture2_v120.dll" "$(TargetDir)"
|
||||
)
|
||||
)</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,45 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventsEx_CSharp", "EventsEx_CSharp_vs2013.csproj", "{F79B77DA-6327-E59E-6C38-6893D842419F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FlyCapture2SimpleGUI_CSharp", "..\FlyCapture2SimpleGUI_CSharp\FlyCapture2SimpleGUI_CSharp_vs2013.csproj", "{851056FF-F11D-84E5-7A04-80D0E610509C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FlyCapture2SimpleGUI_WPF", "..\FlyCapture2SimpleGUI_WPF\FlyCapture2SimpleGUI_WPF_vs2013.csproj", "{912037D3-7D45-8653-A690-6BE392148571}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{F79B77DA-6327-E59E-6C38-6893D842419F}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{F79B77DA-6327-E59E-6C38-6893D842419F}.Debug|x64.Build.0 = Debug|x64
|
||||
{F79B77DA-6327-E59E-6C38-6893D842419F}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{F79B77DA-6327-E59E-6C38-6893D842419F}.Debug|x86.Build.0 = Debug|x86
|
||||
{F79B77DA-6327-E59E-6C38-6893D842419F}.Release|x64.ActiveCfg = Release|x64
|
||||
{F79B77DA-6327-E59E-6C38-6893D842419F}.Release|x64.Build.0 = Release|x64
|
||||
{F79B77DA-6327-E59E-6C38-6893D842419F}.Release|x86.ActiveCfg = Release|x86
|
||||
{F79B77DA-6327-E59E-6C38-6893D842419F}.Release|x86.Build.0 = Release|x86
|
||||
{851056FF-F11D-84E5-7A04-80D0E610509C}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{851056FF-F11D-84E5-7A04-80D0E610509C}.Debug|x64.Build.0 = Debug|x64
|
||||
{851056FF-F11D-84E5-7A04-80D0E610509C}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{851056FF-F11D-84E5-7A04-80D0E610509C}.Debug|x86.Build.0 = Debug|x86
|
||||
{851056FF-F11D-84E5-7A04-80D0E610509C}.Release|x64.ActiveCfg = Release|x64
|
||||
{851056FF-F11D-84E5-7A04-80D0E610509C}.Release|x64.Build.0 = Release|x64
|
||||
{851056FF-F11D-84E5-7A04-80D0E610509C}.Release|x86.ActiveCfg = Release|x86
|
||||
{851056FF-F11D-84E5-7A04-80D0E610509C}.Release|x86.Build.0 = Release|x86
|
||||
{912037D3-7D45-8653-A690-6BE392148571}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{912037D3-7D45-8653-A690-6BE392148571}.Debug|x64.Build.0 = Debug|x64
|
||||
{912037D3-7D45-8653-A690-6BE392148571}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{912037D3-7D45-8653-A690-6BE392148571}.Debug|x86.Build.0 = Debug|x86
|
||||
{912037D3-7D45-8653-A690-6BE392148571}.Release|x64.ActiveCfg = Release|x64
|
||||
{912037D3-7D45-8653-A690-6BE392148571}.Release|x64.Build.0 = Release|x64
|
||||
{912037D3-7D45-8653-A690-6BE392148571}.Release|x86.ActiveCfg = Release|x86
|
||||
{912037D3-7D45-8653-A690-6BE392148571}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,131 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{F79B77DA-6327-E59E-6C38-6893D842419F}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>EventsEx_CSharp</RootNamespace>
|
||||
<AssemblyName>EventsEx_CSharp</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(PlatformToolset)\x86\Debug\</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin64\Debug\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(PlatformToolset)\x64\Debug\</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(PlatformToolset)\x86\Release\</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin64\Release\</OutputPath>
|
||||
<BaseIntermediateOutputPath>$(PlatformToolset)\x64\Release\</BaseIntermediateOutputPath>
|
||||
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<Choose>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Release|AnyCPU' And Exists('..\..\bin') And !Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Release|x86' And Exists('..\..\bin')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managed_v140">
|
||||
<HintPath>..\..\bin\vs2015\FlyCapture2Managed_v140.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Debug|AnyCPU' And Exists('..\..\bin') And !Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Debug|x86' And Exists('..\..\bin')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managedd_v140">
|
||||
<HintPath>..\..\bin\vs2015\FlyCapture2Managedd_v140.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Release|AnyCPU' And Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Release|x64' And Exists('..\..\bin64')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managed_v140">
|
||||
<HintPath>..\..\bin64\vs2015\FlyCapture2Managed_v140.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<When Condition=" ('$(Configuration)|$(Platform)' == 'Debug|AnyCPU' And Exists('..\..\bin64')) Or ('$(Configuration)|$(Platform)' == 'Debug|x64' And Exists('..\..\bin64')) ">
|
||||
<ItemGroup>
|
||||
<Reference Include="FlyCapture2Managedd_v140">
|
||||
<HintPath>..\..\bin64\vs2015\FlyCapture2Managedd_v140.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
</Choose>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>IF $(Platform)==x86 (
|
||||
copy "$(ProjectDir)..\..\bin\vs2015\libiomp5md.dll" "$(TargetDir)"
|
||||
IF $(ConfigurationName)==Debug (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin\vs2015\$(TargetName)d_v140$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin\vs2015\FlyCapture2d_v140.dll" "$(TargetDir)"
|
||||
) ELSE (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin\vs2015\$(TargetName)_v140$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin\vs2015\FlyCapture2_v140.dll" "$(TargetDir)"
|
||||
)
|
||||
) ELSE IF $(Platform)==x64 (
|
||||
copy "$(ProjectDir)..\..\bin64\vs2015\libiomp5md.dll" "$(TargetDir)"
|
||||
IF $(ConfigurationName)==Debug (copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin64\vs2015\$(TargetName)d_v140$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin64\vs2015\FlyCapture2d_v140.dll" "$(TargetDir)"
|
||||
) ELSE (
|
||||
copy "$(TargetDir)$(TargetFileName)" "$(ProjectDir)..\..\bin64\vs2015\$(TargetName)_v140$(TargetExt)"
|
||||
copy "$(ProjectDir)..\..\bin64\vs2015\FlyCapture2_v140.dll" "$(TargetDir)"
|
||||
)
|
||||
)</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,45 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2015
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventsEx_CSharp", "EventsEx_CSharp_vs2015.csproj", "{F79B77DA-6327-E59E-6C38-6893D842419F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FlyCapture2SimpleGUI_CSharp", "..\FlyCapture2SimpleGUI_CSharp\FlyCapture2SimpleGUI_CSharp_vs2015.csproj", "{851056FF-F11D-84E5-7A04-80D0E610509C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FlyCapture2SimpleGUI_WPF", "..\FlyCapture2SimpleGUI_WPF\FlyCapture2SimpleGUI_WPF_vs2015.csproj", "{912037D3-7D45-8653-A690-6BE392148571}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{F79B77DA-6327-E59E-6C38-6893D842419F}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{F79B77DA-6327-E59E-6C38-6893D842419F}.Debug|x64.Build.0 = Debug|x64
|
||||
{F79B77DA-6327-E59E-6C38-6893D842419F}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{F79B77DA-6327-E59E-6C38-6893D842419F}.Debug|x86.Build.0 = Debug|x86
|
||||
{F79B77DA-6327-E59E-6C38-6893D842419F}.Release|x64.ActiveCfg = Release|x64
|
||||
{F79B77DA-6327-E59E-6C38-6893D842419F}.Release|x64.Build.0 = Release|x64
|
||||
{F79B77DA-6327-E59E-6C38-6893D842419F}.Release|x86.ActiveCfg = Release|x86
|
||||
{F79B77DA-6327-E59E-6C38-6893D842419F}.Release|x86.Build.0 = Release|x86
|
||||
{851056FF-F11D-84E5-7A04-80D0E610509C}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{851056FF-F11D-84E5-7A04-80D0E610509C}.Debug|x64.Build.0 = Debug|x64
|
||||
{851056FF-F11D-84E5-7A04-80D0E610509C}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{851056FF-F11D-84E5-7A04-80D0E610509C}.Debug|x86.Build.0 = Debug|x86
|
||||
{851056FF-F11D-84E5-7A04-80D0E610509C}.Release|x64.ActiveCfg = Release|x64
|
||||
{851056FF-F11D-84E5-7A04-80D0E610509C}.Release|x64.Build.0 = Release|x64
|
||||
{851056FF-F11D-84E5-7A04-80D0E610509C}.Release|x86.ActiveCfg = Release|x86
|
||||
{851056FF-F11D-84E5-7A04-80D0E610509C}.Release|x86.Build.0 = Release|x86
|
||||
{912037D3-7D45-8653-A690-6BE392148571}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{912037D3-7D45-8653-A690-6BE392148571}.Debug|x64.Build.0 = Debug|x64
|
||||
{912037D3-7D45-8653-A690-6BE392148571}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{912037D3-7D45-8653-A690-6BE392148571}.Debug|x86.Build.0 = Debug|x86
|
||||
{912037D3-7D45-8653-A690-6BE392148571}.Release|x64.ActiveCfg = Release|x64
|
||||
{912037D3-7D45-8653-A690-6BE392148571}.Release|x64.Build.0 = Release|x64
|
||||
{912037D3-7D45-8653-A690-6BE392148571}.Release|x86.ActiveCfg = Release|x86
|
||||
{912037D3-7D45-8653-A690-6BE392148571}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
190
Lib/FlyCapture2/src/EventsEx_CSharp/Program.cs
Normal file
190
Lib/FlyCapture2/src/EventsEx_CSharp/Program.cs
Normal file
@@ -0,0 +1,190 @@
|
||||
//=============================================================================
|
||||
// Copyright © 2017 FLIR Integrated Imaging Solutions, Inc. All Rights Reserved.
|
||||
//
|
||||
// This software is the confidential and proprietary information of FLIR
|
||||
// Integrated Imaging Solutions, Inc. ("Confidential Information"). You
|
||||
// shall not disclose such Confidential Information and shall use it only in
|
||||
// accordance with the terms of the license agreement you entered into
|
||||
// with FLIR Integrated Imaging Solutions, Inc. (FLIR).
|
||||
//
|
||||
// FLIR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
|
||||
// SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
// PURPOSE, OR NON-INFRINGEMENT. FLIR SHALL NOT BE LIABLE FOR ANY DAMAGES
|
||||
// SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
|
||||
// THIS SOFTWARE OR ITS DERIVATIVES.
|
||||
//=============================================================================
|
||||
//=============================================================================
|
||||
// $Id: Program.cs 320072 2017-03-29 00:32:36Z erich $
|
||||
//=============================================================================
|
||||
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
using FlyCapture2Managed;
|
||||
|
||||
namespace EventsEx_CSharp
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static uint ImageCount = 0;
|
||||
|
||||
static void PrintBuildInfo()
|
||||
{
|
||||
FC2Version version = ManagedUtilities.libraryVersion;
|
||||
|
||||
StringBuilder newStr = new StringBuilder();
|
||||
newStr.AppendFormat(
|
||||
"FlyCapture2 library version: {0}.{1}.{2}.{3}\n",
|
||||
version.major, version.minor, version.type, version.build);
|
||||
|
||||
Console.WriteLine(newStr);
|
||||
}
|
||||
|
||||
static void PrintCameraInfo(CameraInfo camInfo)
|
||||
{
|
||||
StringBuilder newStr = new StringBuilder();
|
||||
newStr.Append("\n*** CAMERA INFORMATION ***\n");
|
||||
newStr.AppendFormat("Serial number - {0}\n", camInfo.serialNumber);
|
||||
newStr.AppendFormat("Camera model - {0}\n", camInfo.modelName);
|
||||
newStr.AppendFormat("Camera vendor - {0}\n", camInfo.vendorName);
|
||||
newStr.AppendFormat("Sensor - {0}\n", camInfo.sensorInfo);
|
||||
newStr.AppendFormat("Resolution - {0}\n", camInfo.sensorResolution);
|
||||
|
||||
Console.WriteLine(newStr);
|
||||
}
|
||||
|
||||
void OnEventReceived(ManagedEventCallbackData data)
|
||||
{
|
||||
Console.Out.WriteLine("----Event Received----");
|
||||
Console.Out.WriteLine(string.Format("EventName = {0}", data.EventName));
|
||||
Console.Out.WriteLine(string.Format("EventID = {0:X}", data.EventID));
|
||||
Console.Out.WriteLine(string.Format("EventTimeStamp = {0}", data.EventTimestamp));
|
||||
Console.Out.WriteLine("---------------------");
|
||||
}
|
||||
|
||||
void RunSingleCamera(ManagedPGRGuid guid)
|
||||
{
|
||||
const int NumImages = 10;
|
||||
|
||||
ManagedCamera cam = new ManagedCamera();
|
||||
|
||||
// Connect to a camera
|
||||
cam.Connect(guid);
|
||||
|
||||
// Get the camera information
|
||||
CameraInfo camInfo = cam.GetCameraInfo();
|
||||
|
||||
PrintCameraInfo(camInfo);
|
||||
|
||||
//
|
||||
// Register for End of Exposure (EoE) event. We simply create an instance of
|
||||
// the ManagedEventOptions, populate it, and register it with the camera.
|
||||
//
|
||||
ManagedEventOptions option = new ManagedEventOptions();
|
||||
option.EventCallbackFcn = OnEventReceived;
|
||||
option.EventName = "EventExposureEnd";
|
||||
|
||||
try
|
||||
{
|
||||
cam.RegisterEvent(option);
|
||||
|
||||
Console.WriteLine("Successfully registered event: {0}", option.EventName);
|
||||
}
|
||||
catch (FC2Exception ex)
|
||||
{
|
||||
Console.WriteLine("Error registering EventExposureEnd : {0}", ex.Message);
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// Attempt to register all events. This will fail, since we only expect this
|
||||
// to be called if no events have yet been registered, but a fatal error
|
||||
// will not be generated. If the user wants to use this call, the user can
|
||||
// DeregisterAllEvents(), and then run RegisterAllEvents().
|
||||
//
|
||||
// If there are numerious different event types, and the user would like to
|
||||
// create a "default" callback and/or UserData struct, the user can run
|
||||
// RegisterAllEvents() with the default callback function, issue
|
||||
// DeregisterEvent() for the specific event that uses a custom callback, and
|
||||
// then issue RegisterEvent() with the specific callback function. This is
|
||||
// to ensure the user doesn't accidentally corrupt the callback function
|
||||
// list.
|
||||
//
|
||||
try
|
||||
{
|
||||
cam.RegisterAllEvents(option);
|
||||
}
|
||||
catch (FC2Exception ex)
|
||||
{
|
||||
// Expected error
|
||||
Console.WriteLine("Error registering EventExposureEnd : {0}", ex.Message);
|
||||
}
|
||||
|
||||
// Start capturing images
|
||||
cam.StartCapture();
|
||||
|
||||
// Retrieve images from buffer
|
||||
ManagedImage rawImage = new ManagedImage();
|
||||
for (ImageCount = 0; ImageCount < NumImages; ImageCount++)
|
||||
{
|
||||
try
|
||||
{
|
||||
// Retrieve an image
|
||||
cam.RetrieveBuffer(rawImage);
|
||||
}
|
||||
catch (FC2Exception ex)
|
||||
{
|
||||
Console.WriteLine("Error retrieving buffer : {0}", ex.Message);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// Stop capturing images
|
||||
cam.StopCapture();
|
||||
|
||||
// Uncomment the following to deregister event handler for specific device event
|
||||
//cam.DeregisterEvent(option);
|
||||
|
||||
// Deregister event handler for all events
|
||||
cam.DeregisterAllEvents();
|
||||
|
||||
// Disconnect the camera
|
||||
cam.Disconnect();
|
||||
|
||||
// Reset counter for next iteration
|
||||
ImageCount = 0;
|
||||
}
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
PrintBuildInfo();
|
||||
|
||||
Program program = new Program();
|
||||
|
||||
ManagedBusManager busMgr = new ManagedBusManager();
|
||||
uint numCameras = busMgr.GetNumOfCameras();
|
||||
|
||||
Console.WriteLine("Number of cameras detected: {0}", numCameras);
|
||||
|
||||
// Finish if there are no cameras
|
||||
if (numCameras == 0)
|
||||
{
|
||||
Console.WriteLine("Not enough cameras!");
|
||||
Console.WriteLine("Press Enter to exit...");
|
||||
Console.ReadLine();
|
||||
return;
|
||||
}
|
||||
|
||||
for (uint i = 0; i < numCameras; i++)
|
||||
{
|
||||
ManagedPGRGuid guid = busMgr.GetCameraFromIndex(i);
|
||||
|
||||
program.RunSingleCamera(guid);
|
||||
}
|
||||
|
||||
Console.WriteLine("Done! Press enter to exit...");
|
||||
Console.ReadLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
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("EventsEx_CSharp")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("FLIR Integrated Imaging Solutions, Inc.")]
|
||||
[assembly: AssemblyProduct("EventsEx_CSharp")]
|
||||
[assembly: AssemblyCopyright("© FLIR Integrated Imaging Solutions, Inc. All rights reserved.")]
|
||||
[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("88c835de-1807-48d6-a90b-9dccc2db5dd4")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("2.8.3.0")]
|
||||
[assembly: AssemblyFileVersion("2.8.3.0")]
|
||||
[assembly: AssemblyInformationalVersion("2.8.3.0")]
|
||||
7
Lib/FlyCapture2/src/EventsEx_CSharp/app.config
Normal file
7
Lib/FlyCapture2/src/EventsEx_CSharp/app.config
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0"/>
|
||||
</startup>
|
||||
</configuration>
|
||||
@@ -0,0 +1 @@
|
||||
1b45d85c3aab23d4903265f6e0d7d6a1aa7bcfc5
|
||||
@@ -0,0 +1 @@
|
||||
c2c10bdfc7f05bde2ea3454c5e4a34be072edd47
|
||||
Reference in New Issue
Block a user