kzpns / FuiEditor

just a fui editor
MIT License
6 stars 2 forks source link

Reverse Images Back to Blue Hue Value. #3

Open KronoTrigger opened 4 years ago

KronoTrigger commented 4 years ago

This application works excellent. Although, I was trying to figure out how you managed to correct the colors of the images. Images that haven't been reversed back to the blue hue the image was originally will appear as a blue hue image in-game.

How'd you manage to find the correct hue value to reverse the image to its correct hue and how would I be able to reverse the image back to the blue hue format it was originally in. I apologize if the question is confusing.

kzpns commented 4 years ago

The function, ImageUtils.ReverseColorRB reverses red and blue each pixels to restore the original color.

https://github.com/kzpns/FuiEditor/blob/master/Utils/ImageUtils.cs#L39