Core Optical, Inc.
GaussianBlurFilter SyncContext Property Industrial Strength, Scientific Grade
Get or sets the OnlineSynchronizationContext to which events raised by the current object will be posted.

Namespace: PrecisionImage.SpatialFiltering
Assembly: PrecisionImage (in PrecisionImage.dll) Version: (

public SynchronizationContext SyncContext { get; set; }

All events originating from PrecisionImage.NET objects are posted to the object's OnlineSynchronizationContext which by default is initialized to the SynchronizationContext of the thread in which the object is instantiated. In the case of instantiation within a worker thread, the UI thread should retrieve it's own SynchronizationContext using Synchronization.Current and pass it to the worker thread. The worker thread can then assign this SynchronizationContext to whatever PrecisionImage.NET objects it creates. This guarantees that events are posted to - and handled by - the UI thread and not the worker thread.
See Also