Discussion:
wine and gdi+
Michael Büttner
2005-06-12 17:36:12 UTC
Permalink
Hi,

I was checking wine for GDI+ support and noticed that there are no headers or
anything at all. I did not find any further information, so i guess there's
no work being done there?

So, winelib is not an option. What about using wine and native gdiplus.dll,
any experiences?
What about the license? The one shipped with the gdiplus package I got says
says you may use/redistribute gdiplus.dll solely for windows, has anybody
ever seen a less restrictive version of that?

thx,
michael
Felix Nawothnig
2005-06-13 10:23:40 UTC
Permalink
Post by Michael Büttner
I was checking wine for GDI+ support and noticed that there are no headers or
anything at all. I did not find any further information, so i guess there's
no work being done there?
Seems so. Might be related to the fact that it's not widely used yet and
not shipped with pre-XP Windows so most apps which use it (are there
any? :) probably come with their own gdiplus.dll.

I should note that gdiplus.dll is written in plain C - it exports just
the (documented) "flat APIs" with all the C++ classes being in the PSDK
headers so it should be possible to support it in Wine.
Post by Michael Büttner
So, winelib is not an option. What about using wine and native gdiplus.dll,
any experiences?
As gdiplus.dll seems to be just a wrapper around gdi32.dll (at least
that's what the imports indicate, MSDN claims "Applications based on the
Microsoft Win32 API do not access graphics hardware directly. Instead,
GDI+ interacts with device drivers on behalf of applications.") using
native gdiplus.dll should be no problem.

But as I don't know any app using GDI+ I can't test that. ;)

-flx
Andreas Mohr
2005-06-13 11:04:52 UTC
Permalink
Hi,
Post by Felix Nawothnig
But as I don't know any app using GDI+ I can't test that. ;)
AFAIR there used to be huge bitmap image insecurities in GDI+,
thus Microsoft offered a tool on Windows Update which could scan
your system for GDI+ apps that would need to be fixed.
Maybe just get that tool and say hello to your selection of GDI+ apps...

Andreas Mohr
Felix Nawothnig
2005-06-13 13:15:50 UTC
Permalink
Post by Andreas Mohr
AFAIR there used to be huge bitmap image insecurities in GDI+,
thus Microsoft offered a tool on Windows Update which could scan
your system for GDI+ apps that would need to be fixed.
Maybe just get that tool and say hello to your selection of GDI+ apps...
You mean GDIScan? That tool just checks for unpatched gdiplus.dll's
shipped with some third-party apps...

Anyway, I found a mozilla build which uses (and ships) GDI+ to render
SVG and it seems to work just fine:

Loading Image...

So yes, native GDI+ works in Wine.

-flx
Brian Vincent
2005-06-13 15:46:44 UTC
Permalink
Post by Felix Nawothnig
Anyway, I found a mozilla build which uses (and ships) GDI+ to render
http://img81.echo.cx/my.php?image=mozsvggdiplus5un.png
So yes, native GDI+ works in Wine.
PowerPoint Viewer 2003 also uses it and works fine.

-Brian

Continue reading on narkive:
Loading...