Skip to content

Commit 653bc4d

Browse files
committed
add nearest-neighbour interpolation for image zoom. Resolves #96
1 parent 7918e51 commit 653bc4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AvaGui/Views/MainWindow.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@
405405
<DockPanel>
406406
<Border BorderThickness="1" DockPanel.Dock="Top">
407407
<StackPanel Orientation="Vertical" MaxHeight="512">
408-
<Image Name="AnimationPreviewPP" Source="{Binding SelectedBitmapPreview}" Stretch="None" Margin="4" MaxHeight="1024" MinHeight="64" Height="{Binding AnimationWindowHeight}" Width="256">
408+
<Image Name="AnimationPreviewPP" Source="{Binding SelectedBitmapPreview}" RenderOptions.BitmapInterpolationMode="None" Stretch="None" Margin="4" MaxHeight="1024" MinHeight="64" Height="{Binding AnimationWindowHeight}" Width="256">
409409
<Image.RenderTransform>
410410
<ScaleTransform ScaleX="{Binding Zoom}" ScaleY="{Binding Zoom}" />
411411
</Image.RenderTransform>

0 commit comments

Comments
 (0)