|Don't ask to ask, just ask|
too many colors, using Tk to write imagesby elbie (Deacon)
|on Jun 11, 2003 at 19:33 UTC||Need Help??|
elbie has asked for the
wisdom of the Perl Monks concerning the following question:
I'm trying to use Tk to superimpose two images, then write them back out again, but I'm getting an error "too many colors at /Library/Perl/darwin/Tk.pm line 228."
Here's a scaled down script that reproduces the error:
I tried playing with the palette options, and the redither method (commented out above) to see if they would help, but they didn't.
The greyscale option helped, of course, but the image was in greyscale. Not so good.
Also, is there a way to generate a Photo object without creating it using a parent object? I tried $foo = Tk::Photo( ... ) and similar, but those didn't seem to work.