Code Monkey home page Code Monkey logo

Comments (8)

SuRGeoNix avatar SuRGeoNix commented on July 26, 2024

I don't see a Layout exception, I'm not familiar with viewbox at all. Can you provide more information and the exception message?

If you use the viewbox for the image then it should be inside VideoView and not outside.

image

from flyleaf.

huangli321456 avatar huangli321456 commented on July 26, 2024

just like this,and run the application
image

from flyleaf.

huangli321456 avatar huangli321456 commented on July 26, 2024

I have solved this problem. You can refer to my practice
WPF.zip

from flyleaf.

SuRGeoNix avatar SuRGeoNix commented on July 26, 2024

OK I see your point. Those two files are based on libvlcsharp from here and here

So the issue is with DPI? If you feel confident I will review it and I will update this to the next version.

from flyleaf.

huangli321456 avatar huangli321456 commented on July 26, 2024

those two files are here
image

not only DPI,the basic window size also affects the viewbox and indirectly the videoview
so you need to calculate the zoom ratio between the current screen and the design size of the base window
for example , your screen bound is 1920x1080,but base window size is design to 3840x2160,and system zoom layout is not 100% like this
image
under these circumstances,DPI and basic window size will all affect it

from flyleaf.

SuRGeoNix avatar SuRGeoNix commented on July 26, 2024

This probably means that Renderer should also consider those factors. And I need also to ensure that doesn't brake anything else.

from flyleaf.

SuRGeoNix avatar SuRGeoNix commented on July 26, 2024

Hey, I tried to add this on v3.2 but the fix that you suggest didn't work for me. I didn't have time to do more research on this. I will have a look at the next update

from flyleaf.

SuRGeoNix avatar SuRGeoNix commented on July 26, 2024

@huangli321456 I'm closing this as I cannot reproduce it anymore. Please re-open if you still have issues.

from flyleaf.

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.