NO

Author Topic: GDI+  (Read 6756 times)

post from old forum

  • Guest
GDI+
« on: September 14, 2004, 04:19:23 am »
Pelle:

Do you have any plans to add GDI+ graphics support to Pelles C?

Robert Wishlaw

post from old forum

  • Guest
GDI+
« Reply #1 on: September 14, 2004, 04:19:45 am »
Hello Robert,

I have an almost finished include file for the 'flat API' (gdiplusflat.h). Not sure how useful it is. This is what Microsoft says:

"Microsoft Windows GDI+ exposes a flat application programming interface (API) that consists of about 600 functions, which are implemented in Gdiplus.dll and declared in Gdiplusflat.h. The functions in the GDI+ flat API are wrapped by a collection of about 40 C++ classes. It is recommended that you do not directly call the functions in the flat API. Whenever you make calls to GDI+, you should do so by calling the methods and functions provided by the C++ wrappers. Microsoft Product Support Services will not provide support for code that calls the flat API directly."

Pelle

czerny

  • Guest
Re: GDI+
« Reply #2 on: December 12, 2011, 01:22:39 am »
Hallo,

is this (Pelles version) include file available somewhere?

czerny

CommonTater

  • Guest
Re: GDI+
« Reply #3 on: December 12, 2011, 02:01:27 am »
GDI+ is included automatically when you #include <windows.h> ... there's nothing to add.

Windows itself uses GDI+ to draw windows.

If you add #define WIN32_DEFAULT_LIBS before your #includes, the headers will sort it out for you.
« Last Edit: December 12, 2011, 02:04:18 am by CommonTater »

czerny

  • Guest
Re: GDI+
« Reply #4 on: December 13, 2011, 10:07:33 am »
Hallo,

I asked for the header file gdiplusflat.h. This file is in its original form not usable for C-Programmers.
It seems that Pelle has produced an adapted version.

czerny

CommonTater

  • Guest
Re: GDI+
« Reply #5 on: December 13, 2011, 07:32:49 pm »
Ah... this I would not know.  I mostly work with windows controls and haven't done a whole lot of drawing apps...

So, I apologize,  if I've lead you down the wrong path, here.

zbaka

  • Guest
Re: GDI+
« Reply #6 on: December 17, 2011, 09:20:46 am »
Hallo,

I asked for the header file gdiplusflat.h. This file is in its original form not usable for C-Programmers.
It seems that Pelle has produced an adapted version.

czerny
Yes, although GDI+ is a flat API, Microsoft doesn't support the C langage. "John F" has converted the whole GDI+ headers to be compatible with Pelles C.  This work can be found on this forum (I don't remember where).

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 383
    • Alex's Link Sammlung
Re: GDI+
« Reply #7 on: December 21, 2011, 08:17:02 am »
This work can be found on this forum (I don't remember where).

Or you can find it on Johns homepage: www.johnfindlay.plus.com/pellesc/libs/libs.html
best regards
 Alex ;)

czerny

  • Guest
Re: GDI+
« Reply #8 on: December 21, 2011, 11:07:36 am »
Yes, but gdiplusflat.h is'nt included.

As Pelle wrote:

Quote
I have an almost finished include file for the 'flat API' (gdiplusflat.h). Not sure how useful it is.

czerny

JohnF

  • Guest
Re: GDI+
« Reply #9 on: December 28, 2011, 12:59:57 pm »
Do you still need gdiplusflat.h ?

John

czerny

  • Guest
Re: GDI+
« Reply #10 on: December 28, 2011, 11:55:18 pm »
Quote
Do you still need gdiplusflat.h ?

I do not NEED this file. I thought I could have one consistent interface to gdiplus.

I am still a little bit confused. The two sets of functions Gdip* and Gp* are not equivalent.
As your example 'GdiPlusDecoders' shows, some functions do not exist in its Gp* form.
But it is easier to use the Gp* form when translating a cpp example. Otherwise it is more C-like to use the Gdip* functions. 

czerny

JohnF

  • Guest
Re: GDI+
« Reply #11 on: December 29, 2011, 07:56:37 am »
I made the API calls as Gdip... and the converted C++ calls as Gp...

Not a problem I thought.

John