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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user