Painting the camera invalidates the warranty as it changes the way the device deals with heating caused by sunlight. Even if you don't want to keep the camera warranty, painting a camera black and then using it in a sunny environment will cause it to run much hotter. This could lead to early failure of the hardware.