Skip to content

ToSKBitmap draws abnormal pixels for transparent pixels in original image #439

Closed
@rabbitom

Description

@rabbitom
Contributor

When use ToSKBitmap method to convert a UIImage to SKBitmap, the transparent pixels(all zero for r, g, b, a) in original image will be replaced by random, abnormal pixels. This project shows the problem.
skiasharp-draw-bitmap-abnormal
It could be caused by not clearing the CGBitmapContext before drawing, I will submit a PR soon.

Activity

added a commit that references this issue on Jan 31, 2018

Merge pull request #440 from rabbitom/master

83fee59
mattleibow

mattleibow commented on Jan 31, 2018

@mattleibow
Contributor

Thanks for reporting and the PR. I have merged it and it will be in the next release.

ghost locked as resolved and limited conversation to collaborators on Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mattleibow@rabbitom

        Issue actions

          ToSKBitmap draws abnormal pixels for transparent pixels in original image · Issue #439 · mono/SkiaSharp