Recent

Author Topic: Is Delphi different from Lazarus using GDIPlus.dll?  (Read 3604 times)

dtamadeEx

  • New Member
  • *
  • Posts: 17
Is Delphi different from Lazarus using GDIPlus.dll?
« on: September 08, 2018, 11:59:32 am »
Same use GDIPlus.dll, Same Source Code..
Why is the result different?

Sawtooth is serious. This should not be related to Lazarus.
But there are problems.


marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Is Delphi different from Lazarus using GDIPlus.dll?
« Reply #1 on: September 08, 2018, 12:34:29 pm »
Same use GDIPlus.dll, Same Source Code..
Why is the result different?

Sawtooth is serious. This should not be related to Lazarus.
But there are problems.

- no code to reproduce
- not even delphi and lazarus/fpc versions ?
- did you try to enable hidpi in Lazarus (search on the forum to see where)

So there is not much to work on. Next time a bit more info please.

Anyway, depending on the Delphi version it could be the manifest.  The manifest parametrizes GDI (and I assume gdiplus too), as well as the cleartext font engine.  The hidpi bit above is related to this too, but afaik preprepared in lazarus (maybe only trunk)  ?

Deepaak

  • Sr. Member
  • ****
  • Posts: 454
Re: Is Delphi different from Lazarus using GDIPlus.dll?
« Reply #2 on: September 08, 2018, 12:36:54 pm »
can you share your sample code. Because without code it is hard to solve your problem
Holiday season is online now. :-)

dtamadeEx

  • New Member
  • *
  • Posts: 17
Re: Is Delphi different from Lazarus using GDIPlus.dll?
« Reply #3 on: September 08, 2018, 01:45:55 pm »
Same use GDIPlus.dll, Same Source Code..
Why is the result different?

Sawtooth is serious. This should not be related to Lazarus.
But there are problems.

- no code to reproduce
- not even delphi and lazarus/fpc versions ?
- did you try to enable hidpi in Lazarus (search on the forum to see where)

So there is not much to work on. Next time a bit more info please.

Anyway, depending on the Delphi version it could be the manifest.  The manifest parametrizes GDI (and I assume gdiplus too), as well as the cleartext font engine.  The hidpi bit above is related to this too, but afaik preprepared in lazarus (maybe only trunk)  ?

My input is translated software transfer.

So there's very little info, and I want to figure out why GDIPlus. DLL makes such a difference in the Lazarus program(Delphi is perfect).

There is very little code to initialize the GDIPlus object, then load an image (png), print text on it, and finally output a file

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Is Delphi different from Lazarus using GDIPlus.dll?
« Reply #4 on: September 08, 2018, 01:54:02 pm »
Still no version info. (or any other new info). We are not going anywhere this way.

I'll rephrase my early hints in the hope you get it this time:

  • Windows gui and font systems behave differently depending on the age of the binary
  • The core key here is the so called manifest which is an XML file that instructs Windows to link the EXE to newer versions of the GUI dlls. (or the same versions, but sets parameters)
  • The manifest depends on Delphi versioning
  • Lazarus has some manifest options too, like in the hidpi support. Search the forum for more info, and try to enable it

In general manifest related posts on the forum are of interest.

Good luck!

dtamadeEx

  • New Member
  • *
  • Posts: 17
Re: Is Delphi different from Lazarus using GDIPlus.dll?
« Reply #5 on: September 08, 2018, 01:58:33 pm »
Still no version info. (or any other new info). We are not going anywhere this way.

I'll rephrase my early hints in the hope you get it this time:

  • Windows gui and font systems behave differently depending on the age of the binary
  • The core key here is the so called manifest which is an XML file that instructs Windows to link the EXE to newer versions of the GUI dlls. (or the same versions, but sets parameters)
  • The manifest depends on Delphi versioning
  • Lazarus has some manifest options too, like in the hidpi support. Search the forum for more info, and try to enable it

In general manifest related posts on the forum are of interest.

Good luck!

Thank you. I'll try.

 

TinyPortal © 2005-2018