Skip to content

Canvas PNG transparency lost #5

@tomasdev

Description

@tomasdev

The method .draw is not working as drawImage native method does.

If, for example, I wrote
bmd = new BitmapData(100, 100, true); bmd.draw(img); ctx.putImageData(bmd.data, 0, 0);
instead of
ctx.drawImage(img);

I will get, in the first case, the PNG loaded with black background. By the way, in the second case, I get the PNG with alpha loaded.

I realize nobody will use 3 lines when they can use just 1. But I needed this library to apply ColorMatrixFilters... I would love to help in any sense you think I could.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions