freezy / dmd-extensions

A toolbox for virtual pinball dot matrix displays.
GNU General Public License v2.0
127 stars 54 forks source link

Allow 90° rotation when screen grabbing. #464

Open endeemillr opened 8 months ago

endeemillr commented 8 months ago

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 commented 5 months ago

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.

Green7405 commented 4 months ago

@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 commented 4 months ago

Maybe we can get them to implement dmddevice.dll directly? They're still active,aren't they?

On Mon, Jun 3, 2024, 01:48 Green7405 @.***> wrote:

@freezy https://github.com/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!

— Reply to this email directly, view it on GitHub https://github.com/freezy/dmd-extensions/issues/464#issuecomment-2144063157, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAARGGRDMEOXKP2AGBG7UCDZFOVLFAVCNFSM6AAAAABCF2LZ42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBUGA3DGMJVG4 . You are receiving this because you were mentioned.Message ID: @.***>