FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Help with PHP BD imaging functionality
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Help with PHP BD imaging functionality [message #182500 is a reply to message #182489] Thu, 08 August 2013 23:13 Go to previous messageGo to previous message
Christoph Michael Bec is currently offline  Christoph Michael Bec
Messages: 207
Registered: June 2013
Karma:
Senior Member
The Natural Philosopher wrote:

> What that means is that if you e.g. want to apply any given arbitrary
> color value to an image, you need 2GB table color values!!!

AFAIK that's not necessarily true. If the image is created by
imagecreatetruecolor() (or, assumably, if it is created from a
file/string which contains a true color image, opposed to a palletized
image) the "index" to the color table is actually the RGB value:

>>> $im = imagecreatetruecolor(100, 100)
>>> $c = imagecolorallocate($im, 128, 128, 128)
>>> dechex($c)
'808080'

This suggests the assumption that GD doesn't build a palette in this case.

--
Christoph M. Becker
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GUI designer in html
Next Topic: Dictionary Words
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Sep 18 13:03:34 GMT 2024

Total time taken to generate the page: 0.07956 seconds