• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

I need some help about BLP

Status
Not open for further replies.

h82258652

H

h82258652

I am coding a tool and I want to show a blp file in a picture box.(using c# , I think that is a beautiful language)
but when I convert the blp file to jpg file , I found a problem , the color!!!

172616i8fcgvtggvv993vc.png


the left one is the tool converted.
the right one is I converted.(I read the BLP format in http://www.wc3c.net/tools/specs/MagosBlpFormat.txt)

Why the color is wrong?
I need some help , please.

I am a foreigner . So my English is not very well.
 
Red and blue colour channels are swapped by the looks of things. You also have a problem generating value 0 as it is coming out as a value around 64.

It is hard to tell the exact problem only that colours are skewed and the colour channels are swapped.

thanks for help, I think I should find a BLP tool's source code and understand how it converted.
 
Status
Not open for further replies.
Back
Top