I want to adapt your code to my own project, but in code WindowsCompositionSamples/SampleGallery/Samples/SDK/14393/ThumbnailLighting/ThumbnailLighting.xaml.cs
I feel confused about the code:
in Page_loaded event there is a call for UpdateEffectBrush();
and then in UpdateEffectBrush() there is a call for SetImageEffect(image)
and then in SetImageEffect first Code: CompositionEffectBrush brush = _effectFactory.CreateBrush();
problem is "_effectFactory" is an object without an instance.
Before this code I did not find any instantiations of this object.
Where did you complete the initialization before Page_loaded
Can you answer my confusion, Thank you!
The text was updated successfully, but these errors were encountered:
I want to adapt your code to my own project, but in code
WindowsCompositionSamples/SampleGallery/Samples/SDK/14393/ThumbnailLighting/ThumbnailLighting.xaml.cs
I feel confused about the code:
in Page_loaded event there is a call for UpdateEffectBrush();
and then in UpdateEffectBrush() there is a call for SetImageEffect(image)
and then in SetImageEffect first Code:
CompositionEffectBrush brush = _effectFactory.CreateBrush();
problem is "_effectFactory" is an object without an instance.
Before this code I did not find any instantiations of this object.
Where did you complete the initialization before Page_loaded
Can you answer my confusion, Thank you!
The text was updated successfully, but these errors were encountered: