The image gradually darkens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-19 07:28 PM
Hi,
I want to make a big image gradually darken, I used setAlpha() and invalidate() function in handleTickEvent(), but frequent use of setAlpha() and invalidate() function slows down tick time.
Is there a better way to implement this feature?
Solved! Go to Solution.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-20 12:17 AM
Hi,
Not at the moment unfortunately. The workaround for a big image would be to slow down a bit the darkening (instead of every tick you darken it every 2 ticks for example). Or reduce the amount of steps.
/Romain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-20 12:17 AM
Hi,
Not at the moment unfortunately. The workaround for a big image would be to slow down a bit the darkening (instead of every tick you darken it every 2 ticks for example). Or reduce the amount of steps.
/Romain