I wanted to subtract a white image with black circle background from a picture to get a lighting circle here is the white image So I wrote this code
spriteBatch.Begin(SpriteSortMode.Deferred, new BlendState
{
ColorBlendFunction = BlendFunction.Subtract,
AlphaBlendFunction = BlendFunction.Subtract
});
//Draw the white image with black circle
spriteBatch.Draw(test, new Vector2(), Color.White);
spriteBatch.End();
I was aiming to get difference between it and the background image rendered to get something like this
But the result that the first image is only drawn while second is below it