Git Product home page Git Product logo

Comments (5)

osw-mj avatar osw-mj commented on July 19, 2024 1

Hey @usuiat How are you,
Sorry but can you look into my question, Let me know what you think about this.
Or do you have any confusion?
Response this comments if you read it.

from zoomable.

usuiat avatar usuiat commented on July 19, 2024 1

The figure shows the scale, offsetX, and offsetY when the blue image size is zoomed to orange.
image

The visible area then becomes a green rectangle, which can be represented by the equation in the figure.

image

However, this is the case when the aspect ratio of the image and the display area match.
If the aspect ratios are different, it becomes more complicated.
Probably, the required rectangular area will vary from application to application.

from zoomable.

osw-mj avatar osw-mj commented on July 19, 2024 1

Okay I'm closing this issue for now. Thank you.

from zoomable.

usuiat avatar usuiat commented on July 19, 2024

@osw-mj
Sorry for the late reply.
ZoomState exposes offsetX, offsetY and scale.
Using these properties, we may be able to guess which part of the image is being displayed.
Please let me know if there are any other properties you need.

from zoomable.

osw-mj avatar osw-mj commented on July 19, 2024

Yes same i want to know the part displayed and want to convert that part into the image file.
Okay i think you know how it's possible can you make it easier for me means any function

from zoomable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.