-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set alpha and pixel format for Direct2D WIC bitmap #15610
Conversation
BTW I would like to switch to |
|
@cla-avalonia agree |
You can test this PR using the following package version. |
@hez2010 there were couple of attempts to use any other d2d integration: https://github.com/AvaloniaUI/Avalonia/pulls?q=is%3Apr+Vortice+is%3Aclosed Saying this, it should be absolutely possible to implement an alternative rendering backend outside of the repo. With enabling private APIs access. |
Yeah. I'm investigating D2D support as this can get rid of the dependency on Skia and Egl on Windows to save ~20 MB of binary size. |
You can test this PR using the following package version. |
* fix PixelFormat * revert unnecessary changes --------- Co-authored-by: Jumar Macato <[email protected]>
What does the pull request do?
Set
PixelFormat
andAlphaFormat
in Direct2D BitmapImpl.What is the current behavior?
The rendering failed due to
PixelFormat
andAlphaFormat
are null, and throws with a not supported exception.What is the updated/expected behavior with this PR?
No exception thrown due to not supported.