Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1
  • 2

THEMA:

Max limit on loadimage? 02 Jan 2023 20:41 #1

  • Jostebo
  • Jostebos Avatar Autor
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Beiträge: 6
  • Dank erhalten: 0
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?
Anhänge:

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Max limit on loadimage? 04 Jan 2023 04:18 #2

  • davidmcq137
  • davidmcq137s Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Beiträge: 75
  • Dank erhalten: 80
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

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Letzte Änderung: von davidmcq137.

Max limit on loadimage? 04 Jan 2023 12:33 #3

  • Raf
  • Rafs Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Beiträge: 133
  • Dank erhalten: 179
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.

Max limit on loadimage? 05 Jan 2023 08:51 #4

  • Jumbo 747
  • Jumbo 747s Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Beiträge: 14
  • Dank erhalten: 4

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

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Letzte Änderung: von Jumbo 747.

Max limit on loadimage? 06 Jan 2023 06:56 #5

  • Jostebo
  • Jostebos Avatar Autor
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Beiträge: 6
  • Dank erhalten: 0
Thanks. David.

I tried to reach you thru Facebook Messenger.
I would love to chat more about how to draw some of the graphics.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Letzte Änderung: von Jostebo.

Max limit on loadimage? 06 Jan 2023 07:04 #6

  • Jostebo
  • Jostebos Avatar Autor
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Beiträge: 6
  • Dank erhalten: 0
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.

  • Seite:
  • 1
  • 2
Moderatoren: ThornIG-Modellbau
Ladezeit der Seite: 0.238 Sekunden
Powered by Kunena Forum