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

Display orientation #8

Open
Vrganj opened this issue Nov 5, 2023 · 1 comment
Open

Display orientation #8

Vrganj opened this issue Nov 5, 2023 · 1 comment
Labels
api enhancement New feature or request

Comments

@Vrganj
Copy link

Vrganj commented Nov 5, 2023

It would be nice if you could specify the orientation in 90 degree increments.

@Vrganj Vrganj changed the title Display orientation when facing up & down Display orientation Nov 5, 2023
@pianoman911 pianoman911 added enhancement New feature or request api labels Nov 5, 2023
@pianoman911
Copy link
Collaborator

That's a good idea. I'll implement it soon. If you just want the picture rotated, you can put it in your pipeline here:

    public record RotationNode(Rotation rotation) implements IPipelineStream {
        @Override
        public FullSpacedColorBuffer compute(FullSpacedColorBuffer buffer, IPipelineContext context) {
            return buffer.rotate(this.rotation);
        }
    }

It is important to note that the MapClickEvent of course does not consider the rotation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants