C# Texture2D Changing Color

Status
Not open for further replies.
I am having a problem changing color of a texture that I am using as a Projectile.

Here is the method I am using.

Code:
spriteBatch.Draw(p.Txt2DImage, p.Location.Position, null, Color.Black, 0, Vector2.Zero, p.Size.ScaleValue, SpriteEffects.None, 0);

The above does not change the color but it should.

The picture that I am using is also attached.

Thanks for any help.

Picture right here.

https://www.hiveworkshop.com/forums/pastebin.php?id=bco76z

It was a .png file. The black area was transparent. I made this on GIMP version 2.8.10
 
Last edited:
So the circle does not appear as black? Because your base image is blue you may have problems tinting to some colours (as it lacks red and green colour channels).

How do I change that ?

Edit:
There must have been a glitch when I reloaded my visual studios it seems that it started coloring it again. Thanks for you help though.
 
Last edited:
Status
Not open for further replies.
Back
Top