Removed float specifiers. Added PIXEL_INTEGRAL to the rest of the setters. Replaced duplicated code with functions.

Also removed trailing whitespace.