Baseflow / Baseflow/PhotoView

Zoom to previous position (x y coordinates and scale)

Open
#776 5 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

I'm using Photoview for showing pictures. So user can zoom the image and then draw some point.

There is also a function to delete this point. In this case I redraw whole bitmap:

```
matrix = new Matrix();
canvas.drawBitmap(bmp, matrix, paint);
setImageBitmap(bmp);
```

But now I want to zoom image to previous position/coordinates.

This should work:

`setScale(scale, focalX, focalY, false);`
I know the scale but I need focalX, focalY.

How can I get it? Maybe I should somehow calculate it from the

`getSuppMatrix(matrix);`
But I'm not sure if it's possible and how.

Do you have some tips? Help?

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.