private void initImage() {
if (headImageRes != 0) {
bitmap = BitmapFactory.decodeResource(getResources(), headImageRes);
if (headImageWidth != 0 || headImageHeight != 0) bitmap = getResizedBitmap(bitmap, headImageWidth, headImageHeight);
bitmapOffsetX = bitmap.getWidth() / 2;
bitmapOffsetY = bitmap.getHeight() / 2;
bitmapPosition = new float[2];
bitmapTan = new float[2];
matrix = new Matrix();
}
}
WoWoPathView.java 文件源码
java
阅读 37
收藏 0
点赞 0
评论 0
项目:GitHub
作者:
评论列表
文章目录