[Mono-list] Using System.Drawing.Graphics.FromHwnd without X?
Rob.Walker at cedarridge.com
Sat Oct 23 20:23:20 EDT 2010
I am running mono on EC2 and using fastcgi-mono-server2 ... mostly everything
works great. Part of the app uses the PdfSharp library for manipulating
PdfSharp allows for 'drawing' on a PDF page, and calls
System.Drawing.Graphics.FromHwnd(0) as part of that code. This is failing
with a 'System.NotSupportedException' exception and saying "Could not open
display (X-Server required. Check you DISPLAY environment variable)"
libgdiplus is installed correctly (I had different errors before I got that
far). Is there any way around this?
View this message in context: http://mono.1490590.n4.nabble.com/Using-System-Drawing-Graphics-FromHwnd-without-X-tp3008885p3008885.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list