So, in the project I am working on one of the images has a source controlled by a converter to determine which picture is displayed (for quick status type indicators).
The image size is determined by screen size, as it is in a Grid Row that gets resized as the screen view changes.
When I run the app the image is very pixelated. Other similar images that do not use the converter are not. The converter only changes the source of the image, it does not apply any image manipulation.
I tried a different approach that I found on Stack Overflow (below), but I need it to resize without me specifying the width/height.
<Image Stretch="UniformToFill" Grid.Row="1">
<Image.Source>
<BitmapImage UriSource="{Binding MainReport.ReportStatusAndDate, Source={StaticResource globalController},Converter={StaticResource StatusToColor}}" DecodePixelType="Logical" DecodePixelWidth="50"/>
</Image.Source>
</Image>
This did not work.
Here is the current image and another icon for comparison. The one on the left is sized correctly. They are both of similar resolutions, much larger than displayed.
Here is the current code, modified to preserve image source privacy.
<Image Grid.Row="1" Source="{Binding BindingSource, Source={StaticResource globalController},Converter={StaticResource StatusToColor}}"/>
As you can see, size is left open to adapt to current screen size.
And again, the converter does NOT manipulate size in any way, it just changes the file path.