Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: GD colorAllocate not changing colour

by Discipulus (Canon)
on May 16, 2021 at 17:10 UTC ( [id://11132668]=note: print w/replies, xml ) Need Help??


in reply to Re^3: GD colorAllocate not changing colour
in thread GD colorAllocate not changing colour

> Pass a true value for the optional truecolor parameter to the GD constructors..

..or simply force truecolor with the class method

use GD 2.0.33; GD::Image->trueColor(1);

Infact:

> For backwards compatibility with scripts previous versions of GD, new images created from scratch (width, height) are palette based by default.

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^5: GD colorAllocate not changing colour
by Your Mother (Archbishop) on May 16, 2021 at 18:38 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11132668]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-16 23:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found