Recent

Author Topic: GDI+ Library  (Read 17687 times)

Deepaak

  • Sr. Member
  • ****
  • Posts: 454
GDI+ Library
« on: September 19, 2013, 06:13:59 pm »
Please some one point to a good GDIPlus Library for Freepascal.
Holiday season is online now. :-)

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: GDI+ Library
« Reply #1 on: September 19, 2013, 06:21:55 pm »
I have used the GDI+ library from prodigy (the author of the UIB and various libraries for delphi) with out any changes directly in free pascal.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Deepaak

  • Sr. Member
  • ****
  • Posts: 454
Re: GDI+ Library
« Reply #2 on: September 19, 2013, 08:35:41 pm »
I have used the GDI+ library from prodigy (the author of the UIB and various libraries for delphi) with out any changes directly in free pascal.

where to download this library.
http://www.progdigy.com/ does not respond.
Holiday season is online now. :-)

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: GDI+ Library
« Reply #3 on: September 19, 2013, 09:08:32 pm »
Find attached the copy I use in Lazarus.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Deepaak

  • Sr. Member
  • ****
  • Posts: 454
Re: GDI+ Library
« Reply #4 on: September 20, 2013, 03:45:08 am »
Find attached the copy I use in Lazarus.

Thank You very very much. :-)
Why not this library is  included in freepascal/lazarus. GDI+ is a very nice library and is required on many occasions in windows programming.
Holiday season is online now. :-)

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: GDI+ Library
« Reply #5 on: September 20, 2013, 07:19:11 am »
Well I guess there are many reasons that it hasn't be included for example no one contributed the library, the library is windows only which makes it unsuitable for inclusion in the project, etc.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11453
  • FPC developer.
Re: GDI+ Library
« Reply #6 on: September 20, 2013, 05:30:43 pm »
I haven't heard many good things about GDI+. Slow and unstable.

That said, if there is a decent header with a suitable license, I see no problem including it.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: GDI+ Library
« Reply #7 on: September 20, 2013, 05:47:00 pm »
The rar I posted is mpl licensed and what ever little usage I got out of it was stable enough for me as for speed I never actually made any speed tests against other libraries of the same caliber like cairo. In short mainly because it is very similar to GDI I find gdi+ more convenient to use.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

sam707

  • Guest
Re: GDI+ Library
« Reply #8 on: September 21, 2013, 01:03:25 am »
GDIplus ? I havn't hear about since windows 3.11 when i wanted to run some cubersome win95 2D only games, sprites based, which did need 32bits libraries on my 16bits windows. that was one of the primary goals of that slow and ugly library yup !

I recommend you to use openGL, faster , better , nicer.. and cross platform...

R.I.P. gdi+ ------- DirectDraw from DirectX did a nice shot hahahaha !

  printf("that was %s\r\n","fun");
  amen();

don't you know ? we don't use anymore wax tablets :) Julius Caesar shud be mad at us  :P
« Last Edit: September 21, 2013, 01:32:17 am by sam707 »

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: GDI+ Library
« Reply #9 on: September 21, 2013, 07:41:14 am »
well I think you have a point especially if you think that GDI+ was introduced as an addon for windows XP and it didn't exist before that.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: GDI+ Library
« Reply #10 on: September 21, 2013, 08:31:04 am »
Yes. These time traveling messages are a bit unsettling, to be frank.

@deepaak: I'm interested: did you use the library? Was it satisfactory?
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

sam707

  • Guest
Re: GDI+ Library
« Reply #11 on: September 21, 2013, 02:34:27 pm »
well I think you have a point especially if you think that GDI+ was introduced as an addon for windows XP and it didn't exist before that.

I dont "think" , I "know" , I dont "pretend" , I "live", dear young men who "need" to learn where I just have to remember.

microsoft maybe bought gdiplus while launching XP, but it existed as a graphic lib as i told it, under win 3.11 16 bits
« Last Edit: September 21, 2013, 02:44:23 pm by sam707 »

Deepaak

  • Sr. Member
  • ****
  • Posts: 454
Re: GDI+ Library
« Reply #12 on: September 22, 2013, 01:03:48 pm »
Yes. These time traveling messages are a bit unsettling, to be frank.

@deepaak: I'm interested: did you use the library? Was it satisfactory?

Still working on it. Used few times in c++ and got Some nice results. But in pascal, this is my first time.

Holiday season is online now. :-)

Deepaak

  • Sr. Member
  • ****
  • Posts: 454
Re: GDI+ Library
« Reply #13 on: September 22, 2013, 01:17:06 pm »
Chris Jackson published some tests indicating that a piece of
text rendering code he had written could render
99,000 glyphs per second in GDI, but the same
code using GDI+ rendered 16,600 glyphs per
second.

Source : http://en.m.wikipedia.org/wiki/Graphics_Device_Interface

Yes Gdi+ is slow compared to GDI.

Some one told here for Opengl, I never used it before. Can it be used for GUI Components. What Files are distributed along with it.

And any startup examples.
Holiday season is online now. :-)

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: GDI+ Library
« Reply #14 on: September 22, 2013, 01:31:08 pm »
Well those two can not be compared in my opinion for starters GDI uses integer arithmetic while GDI+ uses singles that has an impact on execution speed. Even farther the drawing methods have changed immensely having various effects that most of the time will touch more pixels than the GDI counter parts.

As such a naive comparison of those will show nothing of value is there a speed difference yes there is but if you remove all the effects while drawing then the speed difference is not observable by the naked eye sort of speak. My speed tests against gdi shown that a conservative use of effects will slow down drawing operations around 10~15% from GDI which I find acceptable for the results it produces.

As I said I haven't tested against Cairo which is a much more logical comparison so I can't say if GDI+ is truly slow or not.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

 

TinyPortal © 2005-2018