touchgfx::ZoomAnimationImage::startZoomAnimation() method
@fn void ZoomAnimationImage::startZoomAnimation(int16_t endWidth, int16_t endHeight, uint16_t duration, ZoomMode zoomMode = FIXED_LEFT_AND_TOP, touchgfx::EasingEquation widthProgressionEquation = &touchgfx::EasingEquations::linearEaseNone, EasingEquation heightProgressionEquation = &touchgfx::EasingEquations::linearEaseNone); Setup and starts the zoom animation. Setup and starts the zoom animation. At end of the animation the image will have been resized to the endWidth and endHeight. The development of the width and height during the animation is described by the supplied EasingEquations. The container is registered as a TimerWidget. Unregistering is handled automatically when the animation has finished. Note that the animation follows the specified ZoomMode so the X and Y of the image might change during animation.
Arguments
endWidth
The width of the image at animation end.
endHeight
The height of the image at animation end.
duration
The duration of the animation measured in ticks.
zoomMode
The zoom mode that will be used during the animation. Default = FIXED_LEFT_AND_TOP.
widthProgressionEquation
The equation that describes the development of the width during the animation. Default = EasingEquations::linearEaseNone.
heightProgressionEquation
The equation that describes the development of the height during the animation. Default = EasingEquations::linearEaseNone.