Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The picture is included in the Tk distribution (it's right in the Tk directory). When I look at Xcamel.gif using xv (or a web browser), it shows up with all of the available colors. When I use perl/Tk, it is horribly dithered. I tried experimenting with the "-palette" option on the Photo widget, but to no avail. I am using Perl 5.00503 on Sun/Solaris, and Perl/Tk 800.015. I appreciate any help you can give me. Thanks!#!/usr/local/bin/perl -w use strict; use Tk; my $mw = MainWindow->new; my $image = $mw->Photo(-file => 'Xcamel.gif', -format => 'gif'); $mw->Label(-image => $image)->pack; MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl/Tk color dithering
by rjray (Chaplain) on Sep 17, 2002 at 03:05 UTC |