Any time you are charged with a violent crime, or any crime, there is no guaranteed result. Even if you did act in self-defense, you can still be convicted of the crime. The verdict is left in the hands of the citizens of the jurisdiction that you are in.