Description: Android Canvas achieve picture shadow (shadow) effect, based android.graphics.Canvas android.graphics.BitmapFactory such as to achieve a picture shadow pictures shadow effect, the definition of public ImageEffect methods, internal initialization brushes for use behind the shadow effect, Set the shadow layer, more crucial. Then define Canvas drawing object, call mutate method, if you do not call mutate method, the original image will be changed, because the resources call is the same, all objects are shared state. Set canvas color, image shifting to just after the original formation of the shadow effect
To Search:
File list (Check if you may need any files):
Canvas\.classpath
......\.project
......\AndroidManifest.xml
......\bin\canvas\test\R$attr.class
......\...\......\....\R$drawable.class
......\...\......\....\R$layout.class
......\...\......\....\R$string.class
......\...\......\....\R.class
......\...\......\....\ShaderEffect$ImageEffect.class
......\...\......\....\ShaderEffect.class
......\...\Canvas.apk
......\...\classes.dex
......\...\resources.ap_
......\default.properties
......\gen\canvas\test\R.java
......\proguard.cfg
......\res\drawable\button.png
......\...\........-hdpi\icon.png
......\...\.........ldpi\icon.png
......\...\.........mdpi\icon.png
......\...\layout\main.xml
......\...\values\strings.xml
......\src\canvas\test\ShaderEffect.java
......\bin\canvas\test
......\gen\canvas\test
......\src\canvas\test
......\bin\canvas
......\gen\canvas
......\res\drawable
......\...\drawable-hdpi
......\...\drawable-ldpi
......\...\drawable-mdpi
......\...\layout
......\...\values
......\src\canvas
......\assets
......\bin
......\gen
......\res
......\src
Canvas