Solved by ptrblck in post #6 
              
              
                In your code snippet you’ve dropped the NEAREST interpolation method again for Resize. 
By default a LINEAR interpolation will be used, which will create colors “between” black and red.