文件名称:Canvas
介绍说明--下载内容均来自于网络,请自行研究使用
Android Canvas实现图片阴影(影子)效果,基于android.graphics.Canvas android.graphics.BitmapFactory 等实现的图片阴影,图片影子效果,定义公共的ImageEffect方法,在内部初始化画笔,为后面阴影效果使用,设置阴影层,比较关键。然后定义Canvas绘制对象,调用mutate方法,如果不调用mutate方法,则原图也会被改变,因为调用的资源是同一个,所有对象是共享状态的。设置画布颜色,图像平移为了刚好在原图后形成影子效果-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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
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