PLUS+1 User Forum

PLUS+1 Software => Displays => Topic started by: Marbek_Elektronik on March 13, 2024, 12:57:46 PM

Title: Changing image size in program? vector editor
Post by: Marbek_Elektronik 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)
Title: Re: Changing image size in program? vector editor
Post by: Lukey 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.
Title: Re: Changing image size in program? vector editor
Post by: Marbek_Elektronik 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)
Title: Re: Changing image size in program? vector editor
Post by: Lukey 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.
Title: Re: Changing image size in program? vector editor
Post by: Marbek_Elektronik 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.
Title: Re: Changing image size in program? vector editor
Post by: acmall 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 (https://www.youtube.com/@PLUS1Software/search?query=widget)
Title: Re: Changing image size in program? vector editor
Post by: Marbek_Elektronik 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 ;-)
Title: Re: Changing image size in program? vector editor
Post by: Lukey 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.
Title: Re: Changing image size in program? vector editor
Post by: Camox 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 (https://www.plus1forum.danfoss.com/index.php?topic=1625.msg5493#msg5493).

Have a nice day
Title: Re: Changing image size in program? vector editor
Post by: Marbek_Elektronik 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.