Skip to content

DecorationImage.centerSlice (and probably Canvas.drawImageNine) don't work correctly on web #130612

@Hixie

Description

@Hixie

Even with CanvasKit, Canvas.drawImageNine renders incorrectly.

Specifically I was testing with a 4x4 image giving centerSlice: const Rect.fromLTWH(2.0, 2.0, 1.0, 1.0) to DecorationImage and the result did not match other platforms (nor my intuition and understanding of 9-patch image transforms).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: imagesLoading, displaying, rendering imagese: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webplatform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions