开发者

Customize setbound value for viewing original image size

开发者 https://www.devze.com 2023-01-10 21:00 出处:网络
image.setBounds((getWi开发者_Python百科dth()/2)-zoomControler, (getHeight()/2)-zoomControler, (getWidth()/2)+zoomControler, (getHeight()/2)+zoomControler);
image.setBounds((getWi开发者_Python百科dth()/2)-zoomControler, (getHeight()/2)-zoomControler,
                (getWidth()/2)+zoomControler, (getHeight()/2)+zoomControler);

i want to set bounds value for original image size,how can i set the value for display original image size


drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号