-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Feature: refactor image scaling mode handling #122
Conversation
Hi there, thanks for the PR. |
I also thought this might be a concern. personally it wasn't really noticeable, but I'll switch aliasing modes on zoom anyway. Thanks for pointing it out I do a lot of pixel art work, and I need lightweight image viewers. Windows' default viewer doesn't have a configuration to change aliasing modes. |
@@ -471,12 +471,13 @@ | |||
x:Name="MainImageBorder" | |||
HorizontalAlignment="Center" | |||
VerticalAlignment="Center" | |||
RenderOptions.BitmapScalingMode="Fant" |
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.
Haven't tested the effect this has. Might remove it
I have tried your changes myself, though I've only experienced the image looking worse using it. If you want to edit your pull request to make the edits changeable by the user, I will accept it - or I can do the changes myself. |
Sure, a setting would be good enough, where the user can toggle nearest neightbor, as long as its persistent. Anything I can do to help with this? |
Can you confirm if the commit b134215 is what you're referring to, and possibly edit or modify it with the PR if not? |
I'll try to confirm it tomorrow |
Judging from the code, it looks like the feature was implemented properly. I am excited to see this |
@Ruben2776 I am getting crashes on the dev branch. I believe its just a simple mistake. Along with the fix, I also refactored it so that the logic is dealt in a more conventional manner and reduced duplicate code for future refactoring. |
whoops, wrong file |
Thanks. Is there anything else to be added - or otherwise I will merge? |
@Ruben2776 It's good to go. Afaik, the application doesn't have invalid states but please check it and test it yourself as well just in case. |
Resolves #120
Let me know if you need some more features. I put WIP as I believe this needs more discussion