Skip to content

clip #112

Open
Open

Description

@yuanhaotian

Can you cut graphics in createjs?like the clip() of the native canvas

Activity

  1. danzen commented on Jun 24, 2021

    @danzen
    Contributor

    @yuanhaotian - yes - there is a sourceRect property of the Bitmap class https://createjs.com/docs/easeljs/classes/Bitmap.html#property_sourceRect or you can make a mask with a Shape. We add the width, height, left and top as parameters to a ZIM Bitmap() which extends a CreateJS Bitmap - https://zimjs.com/docs.html?item=Bitmap to make things easier - but that is in ZIM.

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

      Issue actions