I\'m learning WPF on my own and I can\'t seem to find a way to make this work.
Here\'s my code:
Set the ViewportUnits to absolute, which will allow you to define the pixel size of your image in the Viewport. In my example the image size is 32x32.