• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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.

http://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.
Top