Is there a way to specify how the image is scaled in the Image element with a LayoutTransform set to ScaleTransform with integer values for ScaleX and ScaleY ?
I want the image of the scaled image to be clear (that is, by scaling the “nearest neighbor”), without blurring. (Imagine how you would like a bitmap editing program to behave when zoomed).
I noticed the protected VisualBitmapScalingMode property on Image , so I created a subclass of Image that sets this property as BitmapScalingMode.NearestNeighbor . However, this had no effect.
source share