Max limit on loadimage?
- Jostebo
-
Topic Author
- Offline
- New Member
-
- Posts: 6
- Thank you received: 0
TPL_KUNENA_MESSAGE_CREATED 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?
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?
Please Log in or Create an account to join the conversation.
- davidmcq137
-
- Offline
- Senior Member
-
- Posts: 79
- Thank you received: 87
TPL_KUNENA_MESSAGE_REPLIED_NEW 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
That is an interesting question .. which I guess is a nice way of saying I don't know
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
Last edit: 04 Jan 2023 03:22 by davidmcq137.
Please Log in or Create an account to join the conversation.
- Raf
-
- Offline
- Premium Member
-
- Posts: 141
- Thank you received: 192
TPL_KUNENA_MESSAGE_REPLIED_NEW 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
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
Voltario T30, Touch Switch, MicroVario, AMS, SE6
The following user(s) said Thank You: IG-Modellbau, Nicolas
Please Log in or Create an account to join the conversation.
- Jumbo 747
-
- Offline
- New Member
-
- Posts: 14
- Thank you received: 4
TPL_KUNENA_MESSAGE_REPLIED_NEW Max limit on loadimage?
05 Jan 2023 07:51 - 05 Jan 2023 07:52Hi Jostebo,
That is an interesting question .. which I guess is a nice way of saying I don't knowThe 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
Last edit: 05 Jan 2023 07:52 by Jumbo 747.
Please Log in or Create an account to join the conversation.
- Jostebo
-
Topic Author
- Offline
- New Member
-
- Posts: 6
- Thank you received: 0
TPL_KUNENA_MESSAGE_REPLIED_NEW 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.
I tried to reach you thru Facebook Messenger.
I would love to chat more about how to draw some of the graphics.
Last edit: 06 Jan 2023 06:02 by Jostebo.
Please Log in or Create an account to join the conversation.
- Jostebo
-
Topic Author
- Offline
- New Member
-
- Posts: 6
- Thank you received: 0
TPL_KUNENA_MESSAGE_REPLIED_NEW 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.
But I have now added support for Xicoy as well, for those using Xicoy turbines. Will post this as well in few days.
Please Log in or Create an account to join the conversation.
Moderators: Thorn, IG-Modellbau
Time to create page: 0.347 seconds