标签:android style blog class code java
// the SAVE_FLAG constants must match their native equivalents /** restore the current matrix when restore() is called */ public static final int MATRIX_SAVE_FLAG = 0x01; /** restore the current clip when restore() is called */ public static final int CLIP_SAVE_FLAG = 0x02; /** the layer needs to per-pixel alpha */ public static final int HAS_ALPHA_LAYER_SAVE_FLAG = 0x04; /** the layer needs to 8-bits per color component */ public static final int FULL_COLOR_LAYER_SAVE_FLAG = 0x08; /** clip against the layer‘s bounds */ public static final int CLIP_TO_LAYER_SAVE_FLAG = 0x10; /** restore everything when restore() is called */ public static final int ALL_SAVE_FLAG = 0x1F;saveLayer(RectF bounds, Paint paint, int saveFlags);Canvas利用此方法进行图层管理,可以根据区域保存当前图层,绘制完成之后利用restoreToCount将图层绑定;
Android自定义控件一_Canvas分析,布布扣,bubuko.com
标签:android style blog class code java
原文地址:http://blog.csdn.net/huangbiao86/article/details/24975733