PXImagePaint.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:pixate-freestyle-android 作者:
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();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号