Giter Club home page Giter Club logo

Comments (8)

wieslawsoltes avatar wieslawsoltes commented on May 18, 2024 1

@darinkes It is known issue, no need to create new one

from svg.skia.

wieslawsoltes avatar wieslawsoltes commented on May 18, 2024

@darinkes Could you try with new Svg control:

<Svg Name="svgSvg" Path="/Assets/__tiger.svg"/>

from svg.skia.

adossey avatar adossey commented on May 18, 2024

I'm seeing the same behavior as @darinkes using both the Image and Svg controls in Avalonia.Svg.Skia version 0.10.6.1.

from svg.skia.

wieslawsoltes avatar wieslawsoltes commented on May 18, 2024

This is an issue in AvaloniaUI with how opacity is blended when using custom draw operation

rider64_bvo7LHrGJm

from svg.skia.

wieslawsoltes avatar wieslawsoltes commented on May 18, 2024

I have hack fix for that, but not really want it to use #79

from svg.skia.

adossey avatar adossey commented on May 18, 2024

Thanks for the quick hack! I tried it out, and it works now when the Opacity is applied directly to the Svg control, but it still doesn't work when the Opacity is inherited from the parent control. I can work around this by just duplicating a little code, but inheriting the Opacity from the parent would certainly be ideal.

from svg.skia.

wieslawsoltes avatar wieslawsoltes commented on May 18, 2024

Thanks for the quick hack! I tried it out, and it works now when the Opacity is applied directly to the Svg control, but it still doesn't work when the Opacity is inherited from the parent control. I can work around this by just duplicating a little code, but inheriting the Opacity from the parent would certainly be ideal.

Without Avalonia fixing this in core library this hack is best I can do.

from svg.skia.

darinkes avatar darinkes commented on May 18, 2024

@wieslawsoltes thanks for taking a look at it!

Should we open an issue at Avalonia?
May I ask you to do it, since you can be more specific what needs to be done?

from svg.skia.

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.