Guest User

Untitled

a guest
Jun 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. /* ivis is declared in XAML <Image x:Name="iVis" UseLayoutRounding="True" SnapsToDevicePixels="True" /> */
  2.  
  3. iVis.Stretch = Stretch.None;
  4. RenderOptions.SetBitmapScalingMode(iVis, BitmapScalingMode.NearestNeighbor);
  5. RenderOptions.SetEdgeMode(iVis, EdgeMode.Aliased);
  6. VisualBitmapScalingMode = BitmapScalingMode.NearestNeighbor;
  7. iVis.Source = **** your bitmap source ****
Add Comment
Please, Sign In to add comment