diff --git a/Win32CaptureSample/SampleWindow.cpp b/Win32CaptureSample/SampleWindow.cpp index 150196b..d58a4ed 100644 --- a/Win32CaptureSample/SampleWindow.cpp +++ b/Win32CaptureSample/SampleWindow.cpp @@ -183,7 +183,7 @@ void SampleWindow::CreateControls(HINSTANCE instance) // Create current snapshot button HWND currentSnapshotButtonHwnd = CreateWindowW(WC_BUTTON, L"Snapshot Current Capture", - WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON | WS_DISABLED, + WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, 10, 160, 200, 30, m_window, nullptr, instance, nullptr); WINRT_VERIFY(currentSnapshotButtonHwnd); diff --git a/Win32CaptureSample/SimpleCapture.cpp b/Win32CaptureSample/SimpleCapture.cpp index ddaedac..f546020 100644 --- a/Win32CaptureSample/SimpleCapture.cpp +++ b/Win32CaptureSample/SimpleCapture.cpp @@ -1,6 +1,6 @@ #include "pch.h" #include "SimpleCapture.h" -//#include +#include namespace winrt { @@ -113,12 +113,10 @@ void SimpleCapture::OnFrameArrived(winrt::Direct3D11CaptureFramePool const& send void SimpleCapture::TakeSnapshot(winrt::com_ptr const& frame) { - /* DirectX::ScratchImage im; winrt::check_hresult(DirectX::CaptureTexture(GetDXGIInterfaceFromObject(m_device).get(), m_d3dContext.get(), frame.get(), im)); const auto& realImage = *im.GetImage(0, 0, 0); winrt::check_hresult(DirectX::SaveToWICFile(realImage, DirectX::WIC_FLAGS_NONE, GUID_ContainerFormatPng, L"output.png")); - */ } diff --git a/Win32CaptureSample/Win32CaptureSample.vcxproj b/Win32CaptureSample/Win32CaptureSample.vcxproj index b141293..22a3bf9 100644 --- a/Win32CaptureSample/Win32CaptureSample.vcxproj +++ b/Win32CaptureSample/Win32CaptureSample.vcxproj @@ -137,7 +137,7 @@ Windows - Windowscodecs.lib;windowsapp.lib;dwmapi.lib;%(AdditionalDependencies) + Windowscodecs.lib;windowsapp.lib;dwmapi.lib;D:\Robert\repos\DirectXTex\DirectXTex\Bin\Desktop_2019_Win10\ARM64\Debug\DirectXTex.lib;%(AdditionalDependencies) @@ -191,7 +191,7 @@ true true Windows - Windowscodecs.lib;windowsapp.lib;dwmapi.lib;%(AdditionalDependencies) + Windowscodecs.lib;windowsapp.lib;dwmapi.lib;D:\Robert\repos\DirectXTex\DirectXTex\Bin\Desktop_2019_Win10\ARM64\Debug\DirectXTex.lib;%(AdditionalDependencies) @@ -227,16 +227,16 @@ - + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - + \ No newline at end of file diff --git a/Win32CaptureSample/packages.config b/Win32CaptureSample/packages.config index b6fd47d..6d01d7d 100644 --- a/Win32CaptureSample/packages.config +++ b/Win32CaptureSample/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file