1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Added WinRT 8.1 Modern Desktop JavaScript sample

This commit is contained in:
Maxim Kostin
2015-03-18 16:31:27 +03:00
parent e12a04ac7e
commit 5ec908c5f0
24 changed files with 997 additions and 6 deletions
@@ -120,13 +120,24 @@ HRESULT OcvImageManipulations::SetProperties(ABI::Windows::Foundation::Collectio
if (found)
{
IInspectable* value;
spSetting->Lookup(key, &value);
Microsoft::WRL::ComPtr<ABI::Windows::Foundation::IPropertyValue> spPropVal;
Microsoft::WRL::ComPtr<IInspectable> spInsp;
spSetting->Lookup(key, spInsp.ReleaseAndGetAddressOf());
hr = spInsp.As(&spPropVal);
if (hr != S_OK)
{
return hr;
}
INT32 effect;
hr = spPropVal->GetInt32(&effect);
if (hr != S_OK)
{
return hr;
}
Microsoft::WRL::ComPtr<ABI::Windows::Foundation::IReference<int>> ref;
hr = value->QueryInterface(IID_PPV_ARGS(&ref));
int effect = InvalidEffect;
hr = ref->get_Value(&effect);
if ((effect >= 0) && (effect < InvalidEffect))
{
m_TransformType = (ProcessingType)effect;