Lines Matching full:degrees
71 // Orientation hysteresis amount used in rounding, in degrees
155 public static Bitmap rotate(Bitmap b, int degrees) {
156 return rotateAndMirror(b, degrees, false);
161 public static Bitmap rotateAndMirror(Bitmap b, int degrees, boolean mirror) {
162 if ((degrees != 0 || mirror) && b != null) {
168 degrees = (degrees + 360) % 360;
169 if (degrees == 0 || degrees == 180) {
171 } else if (degrees == 90 || degrees == 270) {
174 throw new IllegalArgumentException("Invalid degrees=" + degrees);
177 if (degrees != 0) {
179 m.postRotate(degrees,
389 public static int getDisplayOrientation(int degrees, int cameraId) {
396 result = (info.orientation + degrees) % 360;
399 result = (info.orientation - degrees + 360) % 360;