AsyncImageDiffProcessor.java 文件源码

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

项目:rview 作者:
private Pair<Drawable, int[]> loadSvg(InputStream is) throws SVGParseException {
    SVG svg = SVG.getFromInputStream(is);
    int[] size = new int[2];
    size[0] = (int) svg.getDocumentViewBox().width();
    size[1] = (int) svg.getDocumentViewBox().height();
    svg.setDocumentWidth(mSize);
    svg.setDocumentHeight(mSize);
    return new Pair<>(new PictureDrawable(svg.renderToPicture()), size);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号