Comments (5)
I was able to finally solve this issue. I did so with the help of StackOverflow and Composition APIs.
This method removed the sub-pixel rendering or anti-aliasing effect I was seeing when using a standard Image or Viewbox uniform to fill scale option.
![image](https://private-user-images.githubusercontent.com/7809853/293601677-9d901ddc-ceb6-4bcb-930f-8743bbd1f03d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzODc2ODYsIm5iZiI6MTcyMzM4NzM4NiwicGF0aCI6Ii83ODA5ODUzLzI5MzYwMTY3Ny05ZDkwMWRkYy1jZWI2LTRiY2ItOTMwZi04NzQzYmJkMWYwM2QucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTFUMTQ0MzA2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjMyNGM1NWVkYWFlNWMxMmE3Y2NiMmE3OTZiMGUzMDk1YmI1MjIzZjIwY2Q2MjNkNDU3YjQ5NGZiMjdmZDY2ZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.lfV0ToB39jJEI64YKf_88mMTjQGwd0VrFs_hXwN1wq4)
To see how:
from simple-icon-file-maker.
@TheJoeFin is this what you need? 🦙 https://stackoverflow.com/questions/41210819/nearest-neighbor-rendering-in-uwp
from simple-icon-file-maker.
I am using ImageMagick to scale the source down to the different sizes. The images from that process are good.
The problem I am having is when displaying those small, say 16x16, images on the Image control within the Viewbox control they look blurred when scaling them up.
Is there a better way I should be "zooming in" on the small sizes? Maybe this is an issue with the Viewbox.
from simple-icon-file-maker.
I think the suggestion here is to use the BitmapTransform in the UI layer to scale the image back up to the target DPI/size to display in the Image over using Viewbox?
But that does seem a bit excessive.
What happens if you don't put the image in the Viewbox and just resize the Image control with the Uniform stretch - is it the same behavior then?
from simple-icon-file-maker.
I removed the Viewbox and have the same problem.
Here on the left is the preview in Simple Icon File Maker and on the right is the preview of the same file in the photos app. 🤔
![image](https://private-user-images.githubusercontent.com/7809853/247785684-3ae95d79-96a0-489f-bcf3-df4781d76919.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzODc2ODYsIm5iZiI6MTcyMzM4NzM4NiwicGF0aCI6Ii83ODA5ODUzLzI0Nzc4NTY4NC0zYWU5NWQ3OS05NmEwLTQ4OWYtYmNmMy1kZjQ3ODFkNzY5MTkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTFUMTQ0MzA2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTkxZGVjOTZjNWU3YzczZTc3NTQzODUyZmI0MDlhNzQ1MTU3MTQwNDU1YTEzN2EwNmE1YjYzYjNhZTNkMGIwMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.OoVz0E8e5LwXx3e_IeP2UMLiPnmgJxk3VPslYN8EHXs)
from simple-icon-file-maker.
Related Issues (20)
- W11 styling HOT 1
- Reset default icon sizes HOT 4
- Adding a changelog HOT 1
- Add option for open .ico or drag HOT 2
- Offer size selections based upon usage scenario, i.e. Windows app, Website, etc.
- Add Padding option
- Add background option
- Add Another Langs
- Bulk Convert Multiple Images HOT 3
- Arm64 removed? HOT 4
- Make it easier/document ability to combine multiple sized files into single ico file HOT 3
- Crashes on resize after image preview is dragged out HOT 1
- Enter custom sizes
- Set default sizes
- "Generating" text counts disabled sizes
- History of recent edits
- Ability to paste image from clipboard
- Find actual largest size when opening icon
- [FEAT] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-icon-file-maker.