[Mono-winforms-list] GdipCreateBitmapFromFile

Kornél Pál kornelpal at hotmail.com
Sun Jul 10 06:35:43 EDT 2005


Hi,

Bug #75508 (http://bugzilla.ximian.com/show_bug.cgi?id=75508) is because
Mono uses GdipLoadImageFromFile while MS uses GdipCreateBitmapFromFile and
these functions have different behaviour at least regarding error codes.

libgdiplus however does not implement GdipCreateBitmapFromFile. GDI+
GdipCreateBitmapFromFile returns InvalidParameter when the file cannot be
found.

And GDI+ GdipLoadImageFromFile returns OutOfMemory while libgdiplus returns
FileNotFound.

To fix the bug libgdiplus should be cahnged as well.

Kornél



More information about the Mono-winforms-list mailing list