Hi !
You have to look at the binary pattern for the hex number, a hex digit is built up of 4 bits, so 0xf0 has binary bit pattern 11110000, 0xc0 has binary pattern 11000000 and so on, the 1 is “black” pixels and the 0 are “white” pixels in the picture.
Mikael