Code Monkey home page Code Monkey logo

Comments (3)

Silence-GitHub avatar Silence-GitHub commented on June 11, 2024

Reset gesture after updating transform.
For pan

gesture.setTranslation(.zero, in: gesture.view)

For pinch

gesture.scale = 1

For rotation, maybe you should calculate manually.

Set transform filter fitSize false. If it is true, the filter will consume a lot of memory when the image scales large.

transformFilter.fitSize = false

from bbmetalimage.

Silence-GitHub avatar Silence-GitHub commented on June 11, 2024

To remain the same center while pinching, please try version 1.1.11 and set BBMetalTransformFilter anchorPoint (0.5, 0.5).

from bbmetalimage.

fazal-e-majid avatar fazal-e-majid commented on June 11, 2024

Thank You very much for your response @Silence-GitHub .
The memory problem largely got solved. it is not going to 2GB anymore but still when I first touch the image it goes from 115MB to 409MB right away. though it doesn't increase after that.
One more thing I would like to point out and that is if I rotate the image at some rotation angle and then translate, it's not translating in the right direction. I guess the transform matrix is not multiplied in correct order.
Thank you @Silence-GitHub for the support you are providing. I really appreciate it.

from bbmetalimage.

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.