mergAV uses GLOBAL coordinates?
Klaus major-k
klaus at major-k.de
Tue Nov 15 08:38:19 EST 2022
Hi Brian,
> Am 15.11.2022 um 14:29 schrieb Brian Milby via use-livecode <use-livecode at lists.runrev.com>:
>
> I know that inside any native control, things are drawn at native resolution. A good way to see this is a browser widget. So I’m thinking that that is going to apply in the other direction too. You will need to convert your card coordinates to native coordinates to place the control.
Then this should go into the dictiuonary with 128 point fontsize!
> I might could play with the math, but it wouldn’t be until much later this evening.
thanks, already got it:
------------------------------------------
## KM
...
put the topleft of grc "qr_ios" into tRect1
put the bottomright of grc "qr_ios" into tRect2
put globalloc((tRect1)) & "," && globalloc((tRect2)) into tRect
mergAVCamSet "rect",tRect
## KM
...
-----------------------------------------
> If you are already adjusting the aspect ratio, then you probably have a resizeStack handler.
How did you know? :-D
> It may be easier to just go the next step to using native coordinates.
I did, now I'm wating for a feedback of my tester
> Brian Milby
> brian at milby7.com
Best
Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de
More information about the use-livecode
mailing list