Author Topic: Dynamic zoom on display  (Read 7393 times)

Offline F.M.Elettromeccanica

  • PLUS+1 Developer
  • ***
  • Posts: 47
  • Karma: +1/-0
Dynamic zoom on display
« on: May 23, 2020, 10:13:10 PM »
Hi all,
Is there a way to zoom the images on display?
I'trying to create a dynamic model that needs to be viewed on display. I'm using GPS coordinates to refer the position of my machine to a fixed reference point. I need to zoom in when i' closing to this point... But I'm not finding the way to do it....
Ideas????

Offline acmall

  • PLUS+1 Guru
  • *****
  • Posts: 201
  • Karma: +37/-1
Re: Dynamic zoom on display
« Reply #1 on: May 27, 2020, 10:17:07 AM »

Could you resize the whole screen definition?

For each element you can set ScalePos & ScaleSize to True and that element then resizes as the screen resizes. The screen width, height & insertion point can be controlled by a signal and the width and height can be set larger than the display area which is effectively be a zoom. Width and height would both need to be changed to get an image to resize if KeepAspect is set to True for the image element.


Offline F.M.Elettromeccanica

  • PLUS+1 Developer
  • ***
  • Posts: 47
  • Karma: +1/-0
Re: Dynamic zoom on display
« Reply #2 on: May 27, 2020, 11:47:26 AM »
Great,
I will try in this way,
Thank a lot acmall