What steps will reproduce the problem?
1. Open two different images of same size
2. Apply Filters->Two Source Filters->Morph, then select second image when
asked.
3. Try changing the Source Percentage "Bar" value, the preview will not change.
What is the expected output? What do you see instead?
- Expected is that the preview window applies the filter and show the output
preview, but it just shows the source Image.
Reason:
On applying a two source filter via Preview, preview makes the source image
cropped to the size of preview window. While the Overlay image remains the same
size. Now the two source filter matches the size of two images and rejects
filtering finding the overlay image bigger than the Source image.
Solution:
I've tried resolving the problem without any changes in the code preview class
or the filter itself. Before using the filterPreview.RefreshFilter(), change
the filter.OverlayImage to a preview window sized overlay image. Refresh the
Filter, then again revert back the filter.OverlayImage to the original overlay
Image.
A sample for one paramterized two source filter (Morph) is edited and attached.
Hope it helps.
- Regards
Abhishek Johri