This doesn't work, if the localization changes. Please do not use the spinner text to re-calculate the pixel value. Instead please directly access the current value of the spinner.