andrijac / ruler

Simple on-screen pixel ruler.
424 stars 73 forks source link

Measure at arbitrary angles #64

Open Burtfaceman opened 2 years ago

Burtfaceman commented 2 years ago

Hi. I like the app, but I'd like to be able to measure distances at arbitrary angles. The screenshot in the Microsoft Store shows this capability, but the app doesn't appear to have that functionality. How does one enable measurement at arbitrary angles?

Here's the screenshot from Microsoft Store: image

This is what installed on my computer: image

IsaacMorris1980 commented 2 years ago

@andrijac i might be wrong but the picture from the store is a different ruler then yours correct? although i think the angle feature would be cool

andrijac commented 1 year ago

I would need help with this. @IsaacMorris1980 can you implement it?

IsaacMorris1980 commented 1 year ago

I can try to implement it do we want to revamp right click menu or just add the angle ability

IsaacMorris1980 commented 1 year ago

@andrijac Do we want this to be a command line paramater as well?

andrijac commented 1 year ago

Add option to right click menu to change angle. We could open up the dialog to adjust it. While adjusting angle through dialog, it would be nice to see it changing. I don't know if it would be possible to change angle by dragging the ruler in some way... I guess if we make it possible to go into angle position, it would not be a problem to change angle by dragging it (for example while holding some special key). If implemented, we should add command line params too, an angle parameter.

andrijac commented 1 year ago

@Burtfaceman yeah, this is different ruler, this ruler is not in Microsoft Store.

IsaacMorris1980 commented 1 year ago

@andrijac looks like i can not implement this using winforms the form itself will not rotate i can rotate the text but it is not usefull checking if wpf would allow it to be rotated

IsaacMorris1980 commented 1 year ago

@andrijac Having an issue rotating the wpf window as well still researching it.

andrijac commented 1 year ago

I suspected that it was hard to do... If it's not possible, leave it.

IsaacMorris1980 commented 1 year ago

@andrijac the only potenial way is to make a headless full screen transparent window then draw the ruler as a movable control ontop of the window but it would block access to everything else on the screen. So i am leaving it unless it is acceptable to block access to the screen.