Hyvraine Posted January 5, 2013 Posted January 5, 2013 (edited) I use this code to unpack the pal file and make the pixel: $color2 = unpack('H2', fread($this->pal, 0x01)); $bg_color = ImageColorAllocate($im,$rgb[0],$rgb[1],$rgb[2]); if($color[1] == '00') ImageColorTransparent($im,$bg_color); ImageSetPixel($im,$bg_length,$bg_y,$bg_color); Everything is transparentttt whyyyyyy. My guess is that the 'index' or whatever you call it isn't incrementing or something. I got it to display its palette table though. Any ideas? I'm not really good with PHP, please halp. Edited January 5, 2013 by kenshn111 Quote
Question
Hyvraine
I use this code to unpack the pal file and make the pixel:
Everything is transparentttt whyyyyyy. My guess is that the 'index' or whatever you call it isn't incrementing or something.
I got it to display its palette table though. Any ideas?
I'm not really good with PHP, please halp.
Edited by kenshn1110 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.