Skip to content
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

[IMPROVEMENT] fill excluded rectangles with transparent green #167

Closed
MrMisterG opened this issue Jan 14, 2020 · 9 comments
Closed

[IMPROVEMENT] fill excluded rectangles with transparent green #167

MrMisterG opened this issue Jan 14, 2020 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@MrMisterG
Copy link

I add many excluded areas to my images and find it very useful that they appear as green rectangles on the results image.
I often need to define long exclusions along edges of the image. In those cases, looking at the resulting image, it is not easy to determine which areas have been excluded, partly due to the fact that the green lines along the edges are cropped out of the picture.

It would be less ambiguous if there was an option to fill the the green rectangles with a transparent green fill.

@MrMisterG MrMisterG added the enhancement New feature or request label Jan 14, 2020
@romankh3
Copy link
Owner

Hi, @MrMisterG.
I think, that this is a good idea and it can be added to image-comparison.
For this time, I don't have enough time to do it. Due to this fact, I can suggest you do it if you want it.
We can discuss the details of the implementation here.

Best regards,
Roman.

@MrMisterG
Copy link
Author

Hi @romankh3
Sure! I will take a look at the code in the next days when I have time.

Possible idea is to have a new configuration fillExcludedAreas (boolean)... or no config and always fill excluded areas?

Fill colour could be green or black but 20% or 30% opaque so that the image behind can be seen.

Best regards,
Stuart

@romankh3
Copy link
Owner

All the changes must be backward-compatible with previous versions.

So we can add method with these configurations(boolean fillFullRectangle, double persentOfOpaque)

I think, that the colors must stay as-is.

These changes can be applied to the main rectangles, too.

@MrMisterG
Copy link
Author

MrMisterG commented Jan 16, 2020

Hello @romankh3
So far I have written the new setter method setRectangleProperties(boolean fillRectangles, double percentOpacity)
Ok like this?
Also, do you expect getters for the new configuration properties?
BR
Stuart

@romankh3
Copy link
Owner

romankh3 commented Jan 16, 2020

Hello @MrMisterG
We need to create at least two methods for excluded and difference rectangles.

like it:

  • setExcludedRectangleFilling(boolean fillRectangles, double percentOpacity) - add cofigurations for excluded areas(reactangles)
  • setRectangleFilling(boolean fillRectangles, double percentOpacity) - add configuration for the rectangles of the differences.

also don't forget to write tests these methods.

Yes, it's good to add getters for these variables. To make sure, that they configured as expected.
BR
Roman

@MrMisterG
Copy link
Author

Hi @romankh3
I created a pull request... It is my first one to GitHub so I hope I did it correctly.
Please let me know if there is any issue.
BR
Stuart

@romankh3
Copy link
Owner

Hi @MrMisterG
I saw Pull-Request. You did very well!
I added minor comment, please, resolve it.

BR
Roman

@MrMisterG
Copy link
Author

Thanks! :) I updated it

romankh3 added a commit that referenced this issue Jan 19, 2020
* prepared for new development process.

* Update README.md

* #167: Added options to draw transparent fill inside rectangles

* #167: Code review fix: Renamed method name

Co-authored-by: Roman Beskrovnyi <roman.beskrovnyy@gmail.com>
@romankh3
Copy link
Owner

@MrMisterG Thanks for your contributions!

romankh3 added a commit that referenced this issue Jan 29, 2020
#167: Added options to draw transparent fill inside rectangles
romankh3 added a commit that referenced this issue Jan 29, 2020
#167: added option to fill rectangles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants