On Sep 29, 11:05 pm, [EMAIL PROTECTED] (Sandy lone) wrote:
> On Mon, Sep 29, 2008 at 4:05 PM, Funny Perl <[EMAIL PROTECTED]> wrote:
> > I just start to learn perl on GD graph. My OS is Linux.
>
> > I got a example, but how can I display the graph on the screen ? use
> > Gtk2 or something else?
>
>
On Mon, 2008-09-29 at 23:05 +0800, Sandy lone wrote:
> Generally we use GD to print the graphs to web browsers.
> I didn't know if it can print to a TK application, but we use it
> widely on CGI programming.
Tk can display images using a canvas widget.
If you use Gtk, consider using Glade for you
On Mon, 2008-09-29 at 01:05 -0700, Funny Perl wrote:
> I just start to learn perl on GD graph. My OS is Linux.
>
> I got a example, but how can I display the graph on the screen ? use
> Gtk2 or something else?
The quickest way is to use system and the open command for your desktop.
For GNOME, the
On Mon, Sep 29, 2008 at 4:05 PM, Funny Perl <[EMAIL PROTECTED]> wrote:
> I just start to learn perl on GD graph. My OS is Linux.
>
> I got a example, but how can I display the graph on the screen ? use
> Gtk2 or something else?
>
Generally we use GD to print the graphs to web browsers.
I didn't kn
I just start to learn perl on GD graph. My OS is Linux.
I got a example, but how can I display the graph on the screen ? use
Gtk2 or something else?
Hereis is the code:
#!/usr/bin/perl -w
use GD;
my $gd = GD::Image->new(400,300);
my $white = $gd->colorAllocate(255, 255, 255);
my $black = $g