pixels to r,alpha