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