Android 2D Graphics總結

Android 2D Graphics知識點總結以下:html

image

基本操做

  • translate和rotate;
  • save與restore、saveLayer與restoreToCount;
  • 陰影ShadowLayer;

PorterDuffXfermode

參考文章:android

km.oa.com/group/30595…
www.jianshu.com/p/d11892bbe…
www.jcodecraeer.com/a/anzhuokai…spring

着色器Shader

參考文章:canvas

km.oa.com/group/30595….net

Matrix

Path

文本繪製

參考文章:rest

mp.weixin.qq.com/s/XFJK38NTe…code

過濾

  • rgb過濾 ColorFilter ,ColorMatrixFilter,PorterDuffColorFilter,LightingColorFilter blog.csdn.net/allen315410…
  • alpha過濾 MaskFilter,BlurMaskFilter,EmbossMaskFilter
    blog.csdn.net/iispring/ar…
  • DrawFilter:PaintFlagsDrawFilter
    設置cavas抗鋸齒 canvas.setDrawFilter(new PaintFlagsDrawFilter(0, Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG));

Clip與Region

這部分你們網上查一下便可。cdn

個人相關文章參考
PorterDuffXfermode誤區總結
Android着色器Shader使用誤區htm

相關文章
相關標籤/搜索