Recent

Author Topic: AutoFit  (Read 7928 times)

dicepd

  • Full Member
  • ***
  • Posts: 163
AutoFit
« on: August 18, 2017, 08:25:44 pm »
I am currently testing my program with 1.8rc4 and find that Autofit has gained a new parameter ARenderHeight. Any ideas about what this parameter does or what sort of values to pass?

I am currently passing same value as AHeight parameter but this has now broken my drawing positions on resizeable windows.

Peter
Lazarus 1.8rc5 Win64 / Linux gtk2 64 / FreeBSD qt4

dicepd

  • Full Member
  • ***
  • Posts: 163
Re: AutoFit
« Reply #1 on: August 18, 2017, 10:33:49 pm »
Playing about with this some more and stripping code back to pure centering page on a canvas it appears that using the same value for AHeight and ARenderHeight will center the page.

Changing ARenderHieght just seems to affect the returned dy value.

All seems a bit pointless as dx and dy can be modified before calling DrawFPVectorialToCanvas. Or am I missing something here?
Lazarus 1.8rc5 Win64 / Linux gtk2 64 / FreeBSD qt4

dicepd

  • Full Member
  • ***
  • Posts: 163
Re: AutoFit
« Reply #2 on: August 19, 2017, 07:34:10 pm »
It appears the above is only true if your drawing is centered around the origin. (Most of my drawings are) however for anything which is not centered around the origin the results of autofit are useless.

Have reverted to the version released with 1.6.4 and given up on the latest FPVectorial as too broken to bother with.
Lazarus 1.8rc5 Win64 / Linux gtk2 64 / FreeBSD qt4

 

TinyPortal © 2005-2018