Skip to content

Why CanvasRenderingContext2d.get_image_data argument is float? #1917

@poccariswet

Description

@poccariswet

Summary

https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.CanvasRenderingContext2d.html#method.put_image_data

pub fn get_image_data(
    &self,
    sx: f64,
    sy: f64,
    sw: f64,
    sh: f64{
) -> Result<ImageData, JsValue>

webidl's difinition?
I think not bad u32 or i32 data format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions