Skip to content

ImageData.html::new_with_u8_clamped_array should accept immutable u8_clamped_array #2364

Closed
@JAicewizard

Description

@JAicewizard

Motivation

This requites piet-web to clone the entire image even when it is already in the right format, this is costly because images are big.

Proposed Solution

ImageData.html::new_with_u8_clamped_array should accept an imitable u8_clamped_array because I suspect it is not needed (I'm sure you know that better then I do).

This was originally mentioned in in #1005 by @raphlinus but that has since been closed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions