Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Provide snippet to get a tile's image #3969

Merged
merged 2 commits into from
Jun 17, 2024

Commits on Jun 14, 2024

  1. docs: Provide snippet to get a tile's image

    Since Tile.image can refer to a larger image, to get only the part
    representing the tile one needs to make a copy.
    
    See mapeditor#3960
    bjorn committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    a5d9c9c View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. Added convenient overload to Image.copy

    Usually, creating a rect using Qt.rect() is needlessly verbose, but it
    is very convenient if you already have a rect, like the one obtained
    from Tile.imageRect.
    bjorn committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    4661894 View commit details
    Browse the repository at this point in the history