[Mono-list] Cairo

Peter Hagen peter at wingsofdeath.nu
Sat Feb 21 07:31:36 EST 2009


Hi

I'm trying to create dynamic images with Mono.Cairo in a webservice. I
just used some sample code from the Mono site, and the image is being
created (written to disc). But, I would like to use the png output
directly to a stream. I noticed that in the file
Mono.Cairo.NativeMethods.cs, the write to stream interop methods are not
available.

So, my question is, how can I write a PNG to the Context.Request,
without first writing the png to a file?

Secondly, can anyone hint me howto create a jpeg (or a different
filetype) from the surface?

Thanx in advance

Peter Hagen





More information about the Mono-list mailing list