• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your 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