cancel
Showing results for 
Search instead for 
Did you mean: 

The image gradually darkens

V.H
Senior

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Romain DIELEMAN
ST Employee

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

View solution in original post

1 REPLY 1
Romain DIELEMAN
ST Employee

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