Lines Matching full:degrees
76 // Orientation hysteresis amount used in rounding, in degrees
114 public static Bitmap rotate(Bitmap b, int degrees) {
115 return rotateAndMirror(b, degrees, false);
120 public static Bitmap rotateAndMirror(Bitmap b, int degrees, boolean mirror) {
121 if ((degrees != 0 || mirror) && b != null) {
127 degrees = (degrees + 360) % 360;
128 if (degrees == 0 || degrees == 180) {
130 } else if (degrees == 90 || degrees == 270) {
133 throw new IllegalArgumentException("Invalid degrees=" + degrees);
136 if (degrees != 0) {
138 m.postRotate(degrees,
338 public static int getDisplayOrientation(int degrees, int cameraId) {
345 result = (info.orientation + degrees) % 360;
348 result = (info.orientation - degrees + 360) % 360;