Author Topic: Changing image size in program? vector editor  (Read 11879 times)

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
Changing image size in program? vector editor
« on: March 13, 2024, 12:57:46 PM »
Hi,
is it possible to change image size by running?

I want to change font size and image size by run-time.

Currently, I only know that this works before compiling and then the size is defined.

(Rotation ist possible, i know)
« Last Edit: March 13, 2024, 01:00:37 PM by Marbek_Elektronik »
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Offline Lukey

  • PLUS+1 Expert
  • ****
  • Posts: 71
  • Karma: +8/-0
Re: Changing image size in program? vector editor
« Reply #1 on: March 13, 2024, 02:44:23 PM »
I believe it is, I have not done/tested this exactly but I imagine you could create a text/image widget.
Set ScalePos and ScaleSize to True for the object in the Widget.
For the Widget property set the Width and Height externally with an input.

Some combination of the above should achieve the outcome.

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
Re: Changing image size in program? vector editor
« Reply #2 on: March 13, 2024, 10:00:47 PM »
Thanks,
but I don't understand your second image.

I don't find "signal input"
(it is svg format)
« Last Edit: March 13, 2024, 10:04:59 PM by Marbek_Elektronik »
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Offline Lukey

  • PLUS+1 Expert
  • ****
  • Posts: 71
  • Karma: +8/-0
Re: Changing image size in program? vector editor
« Reply #3 on: March 14, 2024, 12:08:55 AM »
My second image is the Widget properties, you can input a signal from your program to control the Width and Height of the signal.

These can be used to adjust the size in the program while running.

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
Re: Changing image size in program? vector editor
« Reply #4 on: March 14, 2024, 09:35:52 PM »
Oh, it would be fine, if I find a turorial about this.
I am just reading the manual about widgets.
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Offline acmall

  • PLUS+1 Guru
  • *****
  • Posts: 201
  • Karma: +37/-1
Re: Changing image size in program? vector editor
« Reply #5 on: March 15, 2024, 08:54:12 AM »
Documentation and tutorials is an area were there is room for improvement. There are some widget tutorials on the Plus+1 YouTube page.
https://www.youtube.com/@PLUS1Software/search?query=widget

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
Re: Changing image size in program? vector editor
« Reply #6 on: March 15, 2024, 09:33:05 AM »
Thanks,
i have looked to it.
But also Danfoss could explain better how to work with this special technique.

But compilation time now is about 10 minutes. If I use svg instead of bmp it increases to 16 minutes and I am afraid that widgets increase the compilation time also.

In a few days I will use a new workstation with the fastest processor and 64GB RAM, let me see what will happen ;-)
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Offline Lukey

  • PLUS+1 Expert
  • ****
  • Posts: 71
  • Karma: +8/-0
Re: Changing image size in program? vector editor
« Reply #7 on: March 15, 2024, 03:20:41 PM »
Yes image/widget do increase compile time, I always try to use .png file type and keep the original file size to the dimensions that I require for the display.

A fast workstation helps yes.

My DM1200T 85mb .p1p take 1min40sec to compile and a very long time to download the 80mb .lhx to the hardware.

Offline Camox

  • PLUS+1 Expert
  • ****
  • Posts: 52
  • Karma: +4/-0
Re: Changing image size in program? vector editor
« Reply #8 on: March 15, 2024, 04:10:13 PM »
My DM1200T 85mb .p1p take 1min40sec to compile and a very long time to download the 80mb .lhx to the hardware.

The solution to this problem is in this post : https://www.plus1forum.danfoss.com/index.php?topic=1625.msg5493#msg5493.

Have a nice day

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
Re: Changing image size in program? vector editor
« Reply #9 on: March 15, 2024, 04:16:10 PM »
Perhaps using usb port increases the download speed instead of CG150.
I watched this at DP700 and TM610.
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung