Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

CameraView fix rotating on Android #1961

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ void SetupImageReader()
rotatedImage?.Compress(Bitmap.CompressFormat.Jpeg, 100, stream);

Sound(MediaActionSoundType.ShutterClick);
OnPhoto(this, (filePath, stream.ToArray(), rotation));
OnPhoto(this, (filePath, stream.ToArray(), 0));
rotatedImage?.Recycle();
rotatedImage?.Dispose();

Expand All @@ -417,6 +417,11 @@ void SetupImageReader()
}
}
}
else
{
Sound(MediaActionSoundType.ShutterClick);
OnPhoto(this, (filePath, bytes, rotation));
}
};

photoReader.SetOnImageAvailableListener(readerListener, backgroundHandler);
Expand Down