当前位置:网站首页>Image tagging to obtain the coordinates of the image in the ImageView
Image tagging to obtain the coordinates of the image in the ImageView
2022-06-25 12:17:00 【User 9854323】
android matrix The most complete method details and advanced ( Full article )
imageView = findViewById(R.id.imageview);
imageView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Drawable drawable = imageView.getDrawable();
Matrix matrix = imageView.getImageMatrix();
if (drawable != null) {
RectF rectf = new RectF();
rectf.set(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());
matrix.mapRect(rectf); // The most important sentence
Log.i("lcf", "left " + rectf.left + " " + rectf.top + " " + rectf.right + " " + rectf.bottom);
}
}边栏推荐
- Redis雪崩、穿透和击穿是什么?
- The dist function of R language calculates the distance between two samples in dataframe data, returns the distance matrix between samples, and specifies the distance calculation method through the me
- R语言使用epiDisplay包的followup.plot函数可视化多个ID(病例)监测指标的纵向随访图、使用stress.type参数指定强调线的id子集的线条的类型(type)
- JS judge whether a number is in the set
- VFP function to summarize all numeric columns of grid to cursor
- Black Horse Chang Shopping Mall - - - 3. Gestion des produits de base
- How far is it from the DBF of VFP to the web salary query system?
- 属性分解 GAN 复现 实现可控人物图像合成
- Network related encapsulation introduced by webrtc native M96 basic base module
- Continue to cut the picture after the ArcGIS Server is disconnected
猜你喜欢

ROS 笔记(06)— 话题消息的定义和使用
![[oceanbase] Introduction to oceanbase and its comparison with MySQL](/img/1c/bd2bcddb7af4647407d2bc351f5f5d.png)
[oceanbase] Introduction to oceanbase and its comparison with MySQL

2022年首期Techo Day腾讯技术开放日将于6月28日线上举办
![[data midrange] what is the oneid of the data midrange? Isn't the master data fragrant?](/img/51/9aceaaeed1f6db7c60685d53477eba.png)
[data midrange] what is the oneid of the data midrange? Isn't the master data fragrant?

19. Implementation of MVVM architecture based on WPF event to command

An easy-to-use seal design tool - (can be converted to ofd file)

SDN系统方法 | 9. 接入网

黑马畅购商城---2.分布式文件存储FastDFS

Continue to cut the picture after the ArcGIS Server is disconnected

PD1.4转HDMI2.0转接线拆解。
随机推荐
What are redis avalanche, penetration and breakdown?
A set of automated paperless office system (oa+ approval process) source code: with data dictionary
Mpai data science platform random forest classification \ explanation of regression parameter adjustment
Dark horse shopping mall ---1 Project introduction - environment construction
Cesium building loading (with height)
VFP calls the command line image processing program, and adding watermark is also available
Thingspanel releases Internet of things mobile client (multiple pictures)
ARM V7 协处理器
文献之有效阅读
Uncover gaussdb (for redis): comprehensive comparison of CODIS
20. MVVM command binding of WPF
黑马畅购商城---1.项目介绍-环境搭建
Effective reading of literature
Kotlin基础
The temporary table from XML to VFP is simple and easy to use and worth collecting
使用php脚本查看已开启的扩展
Understanding and construction of devsecops and Devops
R language uses the multinom function of NNET package to build an unordered multi classification logistic regression model, and uses the lrtest function of epidisplay package to perform multiple model
Mpai data science platform SVM support vector machine classification \ explanation of regression parameter adjustment
R language uses GLM function to build Poisson logarithmic linear regression model, processes three-dimensional contingency table data to build saturation model, and poisgof function of epidisplay pack