Re: Why Not use GDI+ all the time (REALbasic network user group Mailinglist archive)

Back to the thread list
Previous thread: Re: app.OpenDocument
Next thread: Module Nesting and scope


Win: Why Not use GDI+ all the time   -   Karen
  Re: Why Not use GDI+ all the time   -   Karen
   RE: Why Not use GDI+ all the time   -   Kevin Gale
    Re: Why Not use GDI+ all the time   -   Karen
     RE: Why Not use GDI+ all the time   -   Kevin Gale
    RE: Why Not use GDI+ all the time   -   Kevin Gale

Re: Why Not use GDI+ all the time
Date: 03.03.10 10:09 (Wed, 03 Mar 2010 04:09:42 -0500)
From: Karen

On Mar 3, 2010, at 3:40 AM, Kevin Gale wrote:

> I've just refreshed my memory and the fonts that GDI+ does not support are OpenType fonts based on Postscript (Type 1) outlines (OpenType can either be TrueType or Type1 based). I don't have any font names at hand but you should be able to find some easily. Can't understand why Microsoft supports them in GDI and not GDI+.
>

Thanks!

> To use GDI+ via declares isn't as simple as switching it on. It is a completely different API for drawing / measuring etc...so you will need to implement all of the relevant calls.

I know...But you can set the units you want for drawing and they can be the same as RB's depending on how you set them.

> GDI+ is object orientated but there is a flattened API available so Googling that should bring up some useful sites. Standard RB graphics are not effected when using the GDI+ API's.

That helps a lot! What about if App.UseGDIPlus is true? Are they still distinct if I use declares and get a GDI graphics handle from the RB provided HDC Graphics handle and use GdipCreateFromHDC ?

> I'm sure Aaron Ballman has implemented some of this in a publicly available project so I would maybe investigate that to help you get started.

I've got that, but for what I'm doing. the way all of that is packaged is not optimal. I'm using the raw declares instead of his classes because I'm trying to make Xplatform methods/classes for some stuff RB does not expose for Mac or Win so flat is better for me to work with.

Thanks again
- Karen
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

RE: Why Not use GDI+ all the time
Date: 03.03.10 10:17 (Wed, 3 Mar 2010 09:17:36 +0000)
From: Kevin Gale
Hi Karen.

I must admit we are still using an older version of RB for development that doesn't have the App.UseGDIPlus feature. I have played around with App.UseGDIPlus while testing later RB versions but don't know what happens if used at the same time as the declares.

Regards,
Kevin.

________________________________________
From: Karen [<email address removed>]
Sent: 03 March 2010 09:09
To: REALbasic NUG
Cc: Kevin Gale
Subject: Re: Why Not use GDI+ all the time

On Mar 3, 2010, at 3:40 AM, Kevin Gale wrote:

> I've just refreshed my memory and the fonts that GDI+ does not support are OpenType fonts based on Postscript (Type 1) outlines (OpenType can either be TrueType or Type1 based). I don't have any font names at hand but you should be able to find some easily. Can't understand why Microsoft supports them in GDI and not GDI+.
>

Thanks!

> To use GDI+ via declares isn't as simple as switching it on. It is a completely different API for drawing / measuring etc...so you will need to implement all of the relevant calls.

I know...But you can set the units you want for drawing and they can be the same as RB's depending on how you set them.

> GDI+ is object orientated but there is a flattened API available so Googling that should bring up some useful sites. Standard RB graphics are not effected when using the GDI+ API's.

That helps a lot! What about if App.UseGDIPlus is true? Are they still distinct if I use declares and get a GDI graphics handle from the RB provided HDC Graphics handle and use GdipCreateFromHDC ?

> I'm sure Aaron Ballman has implemented some of this in a publicly available project so I would maybe investigate that to help you get started.

I've got that, but for what I'm doing. the way all of that is packaged is not optimal. I'm using the raw declares instead of his classes because I'm trying to make Xplatform methods/classes for some stuff RB does not expose for Mac or Win so flat is better for me to work with.

Thanks again
- Karen

E-MAIL DISCLAIMER
The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. All information provided, including but not limited to, quotations, system specifications and suggestions concerning hardware/software/services configurations are strictly subject to our standard terms and conditions of business, copies of which are available on request.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Why Not use GDI+ all the time
Date: 03.03.10 08:47 (Wed, 03 Mar 2010 02:47:42 -0500)
From: Karen

On Mar 3, 2010, at 2:31 AM, Kevin Gale wrote:

> Microsoft did not finish GDI+. There are certain common font types that GDI will render but GDI+ won't render. We implemented GDI+ directly in our app and we had to swap between RB and GDI+ doing the text drawing depending on the font.

Thanks! That answers my question and brings up another...

If we turn it on via declares instead of using App.UseGDIPlus, will RB's drawing/fonts still use GDI and only drawing dome though declares be affected?

Can you tell me 1 font affected so I can test that?

Thanks
- Karen
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

RE: Why Not use GDI+ all the time
Date: 03.03.10 09:40 (Wed, 3 Mar 2010 08:40:54 +0000)
From: Kevin Gale
Hi Karen.

I've just refreshed my memory and the fonts that GDI+ does not support are OpenType fonts based on Postscript (Type 1) outlines (OpenType can either be TrueType or Type1 based). I don't have any font names at hand but you should be able to find some easily. Can't understand why Microsoft supports them in GDI and not GDI+.

To use GDI+ via declares isn't as simple as switching it on. It is a completely different API for drawing / measuring etc... so you will need to implement all of the relevant calls. GDI+ is object orientated but there is a flattened API available so Googling that should bring up some useful sites. Standard RB graphics are not effected when using the GDI+ API's. I'm sure Aaron Ballman has implemented some of this in a publicly available project so I would maybe investigate that to help you get started.

Regards,
Kev

________________________________________
From: Karen [<email address removed>]
Sent: 03 March 2010 07:47
To: REALbasic NUG
Cc: Kevin Gale
Subject: Re: Why Not use GDI+ all the time

On Mar 3, 2010, at 2:31 AM, Kevin Gale wrote:

> Microsoft did not finish GDI+. There are certain common font types that GDI will render but GDI+ won't render. We implemented GDI+ directly in our app and we had to swap between RB and GDI+ doing the text drawing depending on the font.

Thanks! That answers my question and brings up another...

If we turn it on via declares instead of using App.UseGDIPlus, will RB's drawing/fonts still use GDI and only drawing dome though declares be affected?

Can you tell me 1 font affected so I can test that?

Thanks
- Karen

E-MAIL DISCLAIMER
The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. All information provided, including but not limited to, quotations, system specifications and suggestions concerning hardware/software/services configurations are strictly subject to our standard terms and conditions of business, copies of which are available on request.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

RE: Why Not use GDI+ all the time
Date: 03.03.10 08:31 (Wed, 3 Mar 2010 07:31:22 +0000)
From: Kevin Gale
Yes.

Microsoft did not finish GDI+. There are certain common font types that GDI will render but GDI+ won't render. We implemented GDI+ directly in our app and we had to swap between RB and GDI+ doing the text drawing depending on the font.

Regards,
Kev.

________________________________________
From: <email address removed> [<email address removed>] On Behalf Of Karen [<email address removed>]
Sent: 03 March 2010 06:30
To: REALbasic NUG
Subject: Win: Why Not use GDI+ all the time

On Windows XP and higher is there any reason not to have use GDI+ on all the time?

Thanks,
- karen
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

E-MAIL DISCLAIMER
The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. All information provided, including but not limited to, quotations, system specifications and suggestions concerning hardware/software/services configurations are strictly subject to our standard terms and conditions of business, copies of which are available on request.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>





Links
MBS Realbasic Plugins - Pfarrgemeinde Messdiener Nickenich