The effect

Effect at 90% reflection rate:

Effect at 10% reflection rate:

Realize the principle of

Reflection rate is passed into Reflection Button’s event handler as the parameter rate:

CreateImageWithReflection this Java rate method according to reflection rate of the incoming parameters, create a corresponding to the height of the reflectionImage reflection is used to display, The Bitmap returned is a union image containing the original image file and the reflection effect:

The full path to this project file: github.com/i042416/ima…

For more of Jerry’s original technical articles, please follow the public account “Wang Zixi” or scan the following QR code: