Giter Club home page Giter Club logo

Comments (2)

clandrew avatar clandrew commented on May 19, 2024

Hi dlr2. Yes, this is by design. Reason being, when you use DrawImage with an effect instead of a bitmap, it's not possible to generally define what the scaling will be. For bitmaps, we know what their bounds are. The scale factor is simple to determine. But effects often have infinite bounds, or bounds that aren't really what you'd expect.

Rest assured, there are many ways to get the behavior you want- like using a ScaleEffect or CropEffect to confine the effect to the correct bounds. It's a lot better for the app to do this, than for Win2D to try and create a scale transform which is invalid or unexpected.

This was also brought up with issue #31, which includes a very detailed explanation.

from win2d.

dlr2 avatar dlr2 commented on May 19, 2024

thanks for the answer...my scaling approach is working but I wanted to know if this was either by design or an oversight.

from win2d.

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.