Re: [Mono-list] System.Drawing status?

2004-04-21 Thread Jordi Mas
On dc, 2004-04-21 at 00:55, Chris Turchin wrote:
 Hello,
 
 last week I sat down and got cairo, libgdiplus and libpixman running
 from cvs in the hopes that it would make my simple system.drawing test
 work. this seems to have not been enough. i just wanted to resize a jpeg
 and am getting the following error:
 

System.Drawing is currently under heavy development. The imaging area
has been redone in the past couple of days and is still a work in
progress. Also, the resizing images is not yet implemented. As a matter
of fact, that many advanced imaging functions are still not there. We
are working on it. Give us a few weeks more.

If you install Mono and libgdiplus from CVS you should be able at least
to load and save graphics. 

Saut,

Jordi,

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] System.Drawing status?

2004-04-20 Thread Chris Turchin
Hello,

last week I sat down and got cairo, libgdiplus and libpixman running
from cvs in the hopes that it would make my simple system.drawing test
work. this seems to have not been enough. i just wanted to resize a jpeg
and am getting the following error:

[EMAIL PROTECTED] test]$ mono s.d.exe /data/images/IMG_0044.JPG 466
/tmp/out.jpg
 
Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for System.Drawing.GDIPlus ---
System.NullReferenceException: A null value was found where an object
instance was required.
in (unmanaged) (wrapper managed-to-native)
System.Drawing.GDIPlus:GdiplusStartup
(ulong,System.Drawing.GdiplusStartupInput,System.Drawing.GdiplusStartupOutput)
in 0x4 (wrapper managed-to-native)
System.Drawing.GDIPlus:GdiplusStartup
(ulong,System.Drawing.GdiplusStartupInput,System.Drawing.GdiplusStartupOutput)in 
0x00068 System.Drawing.GDIPlus:.cctor ()
--- End of inner exception stack trace ---
 
in (unmanaged) System.Drawing.GDIPlus:GdipLoadImageFromFile
(string,intptr)
in 0x00020 System.Drawing.Bitmap:InitFromFile (string)
in 0x00056 (wrapper remoting-invoke-with-check)
System.Drawing.Bitmap:InitFromFile (string)
in 0x0001c System.Drawing.Bitmap:.ctor (string,bool)
in 0x00012 System.Drawing.Bitmap:.ctor (string)
in 0x00056 (wrapper remoting-invoke-with-check)
System.Drawing.Bitmap:.ctor (string)
in 0x00020 System.Drawing.Image:FromFile (string)
in 0x00085 sizer.TestSystemDrawing:GenerateImage
(string,string,string)
in 0x00043 sizer.TestSystemDrawing:Main (string[])
 
is this still to  be expected from system.drawing in its current state
or have I still got something misconfigured (or am I missing something)?

thanks  best regards,

--chris

ps: the line where it breaks (though perhaps clear from exception): 

img = System.Drawing.Image.FromFile(fileName); 



___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list