Scale functions for graphics.