[PerlChina] RE: 如何在Catalyst中嵌入CGI::Graph?

刘静 boheling at hotmail.com
Fri Dec 19 20:26:25 PST 2008


谢谢两位,根据你们的提示我已经解决了问题
不过今天又突然发现CatalystFramework的Advent Canlendar上18号的专题就是如何在Catalyst中嵌入CGI,分享一下:
WrapCGI:CGI.pm in your Catalyst App:
http://www.catalystframework.org/calendar/2008/18

> Date: Wed, 3 Dec 2008 18:20:07 +0800
> From: fayland at gmail.com
> To: china-pm at pm.org
> Subject: Re: [PerlChina] 如何在Catalyst中嵌入CGI::Graph?
> 
> you can use
> $c->res->content_type('image/png');
> $c->res->body(\*OUTPUT);
> binmode STDOUT;
> print STDOUT $gd->png;
> 
> 2008/12/3 J. Peng <yonghua.peng at gmail.com>:
> > 2008/12/3 刘静 <boheling at hotmail.com>:
> >> 需要在网站中加入动态地制作图像并对特定坐标点加入超链接
> >> 查了一下CGI::Graph可以完成我想要的工作, 可是web站点是利用catalyst框架建立的
> >> 请问应该怎么样在catalyst中使用CGI呢
> >>
> >
> > CGI::Graph应该也是调用的GD::Graph吧,可以试试在catalyst里使用后者。
> > _______________________________________________
> > China-pm mailing list
> > China-pm at pm.org
> > http://mail.pm.org/mailman/listinfo/china-pm
> 
> 
> 
> -- 
> Fayland Lam // http://www.fayland.org/
> Foorum based on Catalyst // http://www.foorumbbs.com/
> _______________________________________________
> China-pm mailing list
> China-pm at pm.org
> http://mail.pm.org/mailman/listinfo/china-pm

_________________________________________________________________
灵活拖放共享 — 用 Windows Live™ 轻松共享照片。
http://www.microsoft.com/windows/windowslive/photos.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/china-pm/attachments/20081220/d3bdf771/attachment.html>


More information about the China-pm mailing list