This is probably a very simple thing, but I could not figure it out.
I am trying to create a window were I can display an image while being able to zoom, pan and scroll while adjusting contrast and brightness dynamic way.
In the simplified example below I can have the two parts separately:
img = ExampleData[{"TestImage", "House"}];
sliderC = Slider[Dynamic[c], {-5, 5, .01}, Appearance -> "Labeled"]
sliderB = Slider[Dynamic[b], {-5, 5, .01}, Appearance -> "Labeled"]
adjustedImg = Dynamic[ImageAdjust[img, {c, b}]]
dynamicImg = DynamicImage[img]
But
final = DynamicImage[adjustedImg]
Cannot work because the argument of the function at this point is not an image any more
And if I use Setting
to retrieve the image in the dynamic adjusted image, then final2 is not dynamically updated any more
final2 = DynamicImage[Setting[adjustedImg]]
I tried to use Pane
instead of DynamicImage
, but I could only set scrollbars and not the zoom (and I really need it).
Thank you for the help