Skip to content
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

[BUG] Android: DrawingView.GetImageStream() has a black instead of transparent background #1246

Closed
2 tasks done
schnuch opened this issue Jun 14, 2023 · 0 comments · Fixed by #1251
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@schnuch
Copy link

schnuch commented Jun 14, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

  1. Draw lines on a DrawingView with a transparent background
  2. Generate stream with GetImageStream()
  3. Use this stream as an ImageSource or save it to a file
  4. The background of the new image is black
  • Trying this on a windows build works as expected
  • Using any color but transparent as a background works as expected

Expected Behavior

The generated image should have a transparent background.

Steps To Reproduce

  1. Run solution from linked reproduction repository
  2. Click "Save" button
  3. New image is shown below the button

Link to public reproduction project repository

https://github.com/schnuch/MauiRepro/tree/TransparentDrawingView

Environment

- .NET MAUI CommunityToolkit: 5.2.0
- OS: Windows 10.0.19041.0 / Android 11.0
- .NET MAUI: 7.0.86

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants