Ask Your Question
0

How to rotate putText from the Android studio.

asked 2020-07-11 01:49:35 -0600

ki gravatar image

I accidentally set the screen horizontally. So the letters look horizontal. I want to know how to rotate the letters From the Android studio.

putText(matInput, "R:2", Point(150, 320), 1, 8, Scalar::all(255),6);

It is my putText coding.

image description

The screen is running.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2020-07-11 02:20:26 -0600

berak gravatar image

updated 2020-07-11 02:21:43 -0600

there's no easy way provided for this,

you will have to rotate() your image, draw the text with swapped x,y coords, and rotate it back

I accidentally set the screen horizontally.

it might be easier to fix that instead

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-07-11 01:49:35 -0600

Seen: 835 times

Last updated: Jul 11 '20