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

Allow 90° rotation when screen grabbing. #464

Open
endeemillr opened this issue Jan 22, 2024 · 3 comments
Open

Allow 90° rotation when screen grabbing. #464

endeemillr opened this issue Jan 22, 2024 · 3 comments

Comments

@endeemillr
Copy link

In Zaccarria I've been using the screen mirroring feature to display a player 1 score section of the backglass on my ZeDMD. I would find the coordinates for a particular backglass while in paint shop while working with my screenshot, and DMDext was always capturing the wrong area. After setting up a bunch of tables through trial and error I found what DMDExt is doing wrong. It is supposed to draw the capture rectangle as. "x coordinate, y coordinate (upper left corner) width, height" It has been treating the last variable not as height, but as the y coordinate for the bottom right corner.

I am sure not many people are using the screen mirroring function or this would have been noticed a while ago. It's the only way I can see using a standalone dmd with Zaccarria.

Now my wishlist item would be not to capture sections of the backglass, but to mirror the on screen display which only appears on the playfield monitor. The OSD is rotated 90 degrees the wrong way, so what gets captured is a 4:1 image converted to 1:4. My question is, can it be set up so that if the height is greater than the width, then the displayed image is rotated 90 degrees?

@freezy
Copy link
Owner

freezy commented Apr 20, 2024

I checked the code and it's a weird logic indeed. Basically, if Position[2] - Position[0] < 0, the third param falls back to being width, otherwise it's like you said the position of the bottom right corner. I'll update the doc.

I'll note the rotation as a feature, but don't hold your breath... PR welcome.

@freezy freezy changed the title source- screen parameters are broken, but I found the problem Allow 90° rotation when screen grabbing. Apr 20, 2024
@Green7405
Copy link

@freezy I am also looking for this feature. I want to use it with Demon's Tilt, which I play in cabinet / portrait mode. The section of the screen with the score / DMD is a vertical rectangle, would love to use this feature to rotate the source input so it displays horizontally on the DMD. Thank you!

@freezy
Copy link
Owner

freezy commented Jun 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants