ext_54529 (
shrydar.livejournal.com
) wrote
in
theducks
2008-10-28 01:33 pm (UTC)
no subject
'This allocates a color with the specified red, green and blue components and returns its index in the color table'
I suspect it's creating an 8-bit paletted image - so once you allocate 256 colours that's your lot.
Try wrapping the colorAllocate in your loop with an if( ($i % 8)==0 ) and see what happens..
Any particular reason for using Perl+GD?
(
2 comments
)
Post a comment in response:
From:
Anonymous
This account has disabled anonymous posting.
OpenID
Identity URL:
Log in?
Dreamwidth account
Account name
Password
Log in?
If you don't have an account you can
create one now
.
Subject
HTML doesn't work in the subject.
Formatting type
Casual HTML
Markdown
Raw HTML
Rich Text Editor
Message
[
Home
|
Post Entry
|
Log in
|
Search
|
Browse Options
|
Site Map
]
no subject
I suspect it's creating an 8-bit paletted image - so once you allocate 256 colours that's your lot.
Try wrapping the colorAllocate in your loop with an if( ($i % 8)==0 ) and see what happens..
Any particular reason for using Perl+GD?