Bitte ändert euer Passwort!

Im März 2026 wurde das Forum gehackt. Dabei hatten die Angreifer Zugriff auf die Datenbank und somit Zugriff auf eure Passwörter. Auch wenn das Forum kein Passwort im Klartext speichert, können die Angreifer eure Passwörter knacken. Bitte ändert daher dringend euer Passwort für das Forum. Solltet ihr das gleiche Passwort auch an anderer Stelle verwenden, ändert es bitte unbedingt an allen Stellen!

Max limit on loadimage?

  • Jostebo
  • Autor
  • Offline
  • Neues Mitglied
  • Neues Mitglied
  • Beiträge: 6
  • Thanks: 0

Max limit on loadimage?

02 Jan. 2023 19:41
#
Hi. I am in the final stages of creating a Turbine dashboard. Some of you might have seen my photos and videos from Facebook group as well.
I am facing an issue with the number of images I load during startup. NO error message. I use tiny png images as "icons" to show the RPM gauge / temperature gauge ++.
Some of the images are not showing up in the UI, and its always the last one to be loaded. If I change order, it will be the last one.
PS: It is working fine in Studio, but not on the DS-24.

what is the max number of images that can be loaded using lcd.loadimage command?
What is the max number of Kb that can be loaded for pictures / icons?

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • davidmcq137
  • Offline
  • Senior Mitglied
  • Senior Mitglied
  • Beiträge: 79
  • Thanks: 87

Re: Max limit on loadimage?

04 Jan. 2023 03:18 - 04 Jan. 2023 03:22
#
Hi Jostebo,

That is an interesting question .. which I guess is a nice way of saying I don't know :-) The digitech CTU turbine app used arcs like you are for displaying gauges, and had them in multiple colors and multiple sizes and in 5 degree increments. It was a LOT of image loading ... it's very pretty but the downside is a very long loading process.

If it would help you, I have drawn arcs like yours with the anti-alias drawing (rendering) api and of course you have to make them out of filled polygons .. but it is actually not bad .. you don't need as many segments as you think to make the segments invisible at the screen resolution. And it can be drawn continuously vs in increments as you have to do with images. If you are interested it's in my Dial app on my github ( github.com/davidmcq137/JetiLuaDFM ) .. I can point you to the right place if you are interested. It does burn some CPU time but the new TXs handle it easily. You need to look in the dev branch...

Dave
Letzte Änderung: 04 Jan. 2023 03:22 von davidmcq137.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Raf
  • Offline
  • Premium Mitglied
  • Premium Mitglied
  • Beiträge: 141
  • Thanks: 192

Re: Max limit on loadimage?

04 Jan. 2023 11:33
#
Approx. 6MB is for images. Pngs use rgba mode, so 4Bytes per pixel.
I can recommend to draw antialiased lines instead of loading pictures. Recommendation: at least load image one by one - one image at each program iteration, so the GUI is not blocked. Graphics looks nice ;) you will need to make it fit also 480x480 screen :D
Voltario T30, Touch Switch, MicroVario, AMS, SE6
Folgende Benutzer bedankten sich: IG-Modellbau, Nicolas

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Jumbo 747
  • Offline
  • Neues Mitglied
  • Neues Mitglied
  • Beiträge: 14
  • Thanks: 4

Re: Max limit on loadimage?

05 Jan. 2023 07:51 - 05 Jan. 2023 07:52
#
Hi Jostebo,

That is an interesting question .. which I guess is a nice way of saying I don't know :-) The digitech CTU turbine app used arcs like you are for displaying gauges, and had them in multiple colors and multiple sizes and in 5 degree increments. It was a LOT of image loading ... it's very pretty but the downside is a very long loading process.

If it would help you, I have drawn arcs like yours with the anti-alias drawing (rendering) api and of course you have to make them out of filled polygons .. but it is actually not bad .. you don't need as many segments as you think to make the segments invisible at the screen resolution. And it can be drawn continuously vs in increments as you have to do with images. If you are interested it's in my Dial app on my github ( github.com/davidmcq137/JetiLuaDFM ) .. I can point you to the right place if you are interested. It does burn some CPU time but the new TXs handle it easily. You need to look in the dev branch...

Dave

Hallo, haben Sie einen Link zu dieser App für die CTU?

Grüße
Silvo
Letzte Änderung: 05 Jan. 2023 07:52 von Jumbo 747.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Jostebo
  • Autor
  • Offline
  • Neues Mitglied
  • Neues Mitglied
  • Beiträge: 6
  • Thanks: 0

Re: Max limit on loadimage?

06 Jan. 2023 05:56 - 06 Jan. 2023 06:02
#
Thanks. David.

I tried to reach you thru Facebook Messenger.
I would love to chat more about how to draw some of the graphics.
Letzte Änderung: 06 Jan. 2023 06:02 von Jostebo.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Jostebo
  • Autor
  • Offline
  • Neues Mitglied
  • Neues Mitglied
  • Beiträge: 6
  • Thanks: 0

Re: Max limit on loadimage?

06 Jan. 2023 06:04
#
I haven't made this app to work with CTU.
But I have now added support for Xicoy as well, for those using Xicoy turbines. Will post this as well in few days.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Moderatoren: ThornIG-Modellbau
Ladezeit der Seite: 0.572 Sekunden
Powered by Kunena Forum