1. A method for displaying an image on a user interface, the method comprising: determining a minimum feature width of a user interface element of the image; determining, based on the minimum feature width, a distance field associated with the user interface element; generating a value for each region of the distance field based on a distance value associated with one or more neighboring pixels associated with the user interface element; comparing a pixelated version of the image to an original representation of the image; when results of the comparing the pixelated version of the image to the original representation of the image satisfies a threshold, determining a filter threshold associated with the distance field; using a filter having the filter threshold to generate a rotation of the user interface element, wherein the filter threshold is constant; and outputting the image on the user interface so as to include the rotation of the user interface element: wherein the filter threshold: is based on a sharpness of the image; and represents a distance from a pixel boundary within which anti-aliasing will be performed.