[Mono-aspnet-list] Requirements for System.Drawing usage under ASP.NET / Mono

James Rhodes jrhodes at redpointsoftware.com.au
Sun Dec 23 01:07:16 UTC 2012


Is Mono.Cairo guaranteed to work without an X server running?  All I really
need to do is set pixels on a PNG image.

Regards, James Rhodes.
Redpoint Software

http://about.me/james.rhodes
On 23/12/2012 2:33 AM, "Pablo Ruiz" <pablo.ruiz at gmail.com> wrote:

> And, the problem is isolated to running under ASP.NET? Have you tried
> running the same code as a console app, so you can easily pass
> enviroment variables as DISPLAY, etc.?
>
> There are a couple of things no working/implemented on mono's
> Sys.Drawing, and if so, you'll probably notice due to errors showing
> up on stderr (or error_log on apache), but for normal use cases it
> should work.
>
> For more complex use cases I would recommend you using Mono.Cairo,
> it's 2D API is very similar to Sys.Drawing, and it is available for
> win32 too.
>
> Sent from my iPad
>
> On 22/12/2012, at 16:29, James Rhodes <jrhodes at redpointsoftware.com.au>
> wrote:
>
> > I mainly run it under ASP.Host
> > (http://code.redpointsoftware.com.au/Networking/ASP.Host/summary), but
> > have attempted plain XSP as well and that doesn't work either.
> >
> > Regards, James.
> > Regards, James Rhodes.
> > Redpoint Software
> >
> > http://about.me/james.rhodes
> >
> >
> >
> > On Sun, Dec 23, 2012 at 2:26 AM, Pablo Ruiz <pablo.ruiz at gmail.com>
> wrote:
> >> How are running your app under mono, using XSP? Apache+modmono? fcgi?
> >>
> >> Sent from my iPad
> >>
> >> On 22/12/2012, at 16:21, James Rhodes <jrhodes at redpointsoftware.com.au>
> wrote:
> >>
> >>> Hi everyone,
> >>>
> >>> I have an ASP.NET site that uses System.Drawing to dynamically render
> >>> images and this works fine on my local Windows development machine.
> >>> However, when I move it onto the Linux box running Mono, the drawing
> >>> operations silently fail and I end up with blank PNG files.
> >>>
> >>> The live server is running at http://makemeaworld.com/ and the source
> >>> for the image rendering (and other files) is located at
> >>>
> https://github.com/hach-que/Tychaia/blob/master/MakeMeAWorld/ImageGenerator.cs
> .
> >>>
> >>> I'd expect an exception or library load failure of some kind, but I
> >>> just get a silent failure.  I've tried without running an X server and
> >>> with running Xvfb, but no matter what I do, it just won't set pixels
> >>> in the PNG data..  The relevant lines where it's drawing the image
> >>> data is at
> https://github.com/hach-que/Tychaia/blob/master/MakeMeAWorld/ImageGenerator.cs#L315
> ,
> >>> where it uses FillRectangle to draw a pixel.
> >>>
> >>> Any help with this would be greatly appreciated.
> >>>
> >>> Regards, James Rhodes.
> >>> Redpoint Software
> >>>
> >>> http://about.me/james.rhodes
> >>> _______________________________________________
> >>> Mono-aspnet-list mailing list
> >>> Mono-aspnet-list at lists.ximian.com
> >>> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
> > _______________________________________________
> > Mono-aspnet-list mailing list
> > Mono-aspnet-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20121223/e9a882f3/attachment.html>


More information about the Mono-aspnet-list mailing list