Hyvraine Posted January 5, 2013 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 133 Reputation: 15 Joined: 12/23/11 Last Seen: December 20, 2023 Share 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 Link to comment Share on other sites More sharing options...
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 kenshn111Link to comment
Share on other sites
0 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.