[imgur已删除图片]
左侧的图标是以下代码的结果:
<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>
右边的那张图片是使用Photoshop放置的原始图像。似乎通过代码添加的那张图片被拉伸了一个像素,导致一些失真。我该如何避免这种情况?