Yellow is blue plus green. Getting a yellow image with 0 in the blue channel is physically impossible.

The most frequent mistake of people trying to write into a bitmap is using a wrong format.