-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IP-56: Compare image by dragging the slider at the bottom (also you can save it) #33
Conversation
…ssed and original image.
…ntil slider moves
…me transparent when mouse not hovering?) and go back to the rightmost when each transform performed
Add slider initial function so everytime an operation (filter, colouring, import image, etc.) should set the slider back to the initial position.
@@ -143,6 +189,10 @@ class EngineModel( | |||
) | |||
Adjustment(adjustmentProperties).process(preview) | |||
previewImage.value = preview | |||
parallelImage.value = previewImage.value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this line to the end of each function so the imageview
updates after every picture process. Now I use update slider sliderInit()
and the value of the parallelImage
should also change as the slider value binds with it. So I believe this line could be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so...?
fun loadEncodeImage(path: String) { | ||
val image = Image(path) | ||
encodeImage.value = image | ||
} | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we remove this spaces...?
…G into IP56-slider-image-comparison
fix(slider-with-spinner): NPE: issue introduced in #33
Export parallel
to save in current state.Some improvements can have in the future: