public void applyFillToPath(Path path, Paint paint, Canvas context) {
context.save();
// clip to path
context.clipPath(path);
// do the gradient
Rect bounds = new Rect();
context.getClipBounds(bounds);
Picture image = imageForBounds(bounds);
// draw
if (image != null) {
// TODO - Blending mode? We may need to convert the Picture to a
// Bitmap and then call drawBitmap
context.drawPicture(image);
}
context.restore();
}
PXImagePaint.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:pixate-freestyle-android
作者:
评论列表
文章目录