[deleted image imgur]
The icon on the left is the result of this code:
<Button Height="23" HorizontalAlignment="Left" Margin="12,276,0,0" Name="button1" VerticalAlignment="Top" Width="75">
<StackPanel Orientation="Horizontal">
<Image Source="Resources/add.png" Stretch="None" />
<TextBlock Margin="5,0,0,0" Text="Add" />
</StackPanel>
</Button>
On the right is the original image placed next to it using Photoshop. It seems that the one added through the code is stretched by a pixel, causing some distortion. How to prevent this?
source
share