Baseflow / Baseflow/PhotoView

How to scale (zoom and move) to x,y coordinates of Bitmap in PhotoVIew?

Open
#585 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
18.8k
Forks
3.9k
PR merge metrics
No merged PRs in 30d

Description

At start I have Bitmap and x,y point on the Bitmap.

**How to scale, zoom and move image to x,y coordinates of the bitmap?**

```

int bitmapWidth = bitmap.getWidth();//2418
int bitmapHeight = bitmap.getHeight();//1889
float x = 1209f;
float y = 944f;

float targetScale = 4f;
attacher.setScale(targetScale, x,y, false);//it doesnt work

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.