omerjerk / Screenshotter

A library to take screenshots without root access
58 stars 26 forks source link

Image Rotation #3

Open moster67 opened 8 years ago

moster67 commented 8 years ago

I think the sample code posted does not take into account ImageRotaion. How would you go about it?

omerjerk commented 8 years ago

If you want to rotate the image, you'll need to rotate the bitmap yourself. There's plenty of code for that on StackOverflow. :)

moster67 commented 8 years ago

Agree! Sorry, I was not clear. I am now in the office so I cannot test, but I was more thinking of when the device is moved between portrait and landscape mode and we need to swap width and height. I guess we can get it using OnConfigurationChanged but would we need to reinitialize?