Utils
Utility class to provide helper methods.
Functions
Link copied to clipboard
fun convertToBitmap(data: ByteBuffer, width: Int, height: Int, rotationDegrees: Int): <ERROR CLASS>?
Content copied to clipboard
Convert NV21 format byte buffer to bitmap.
Link copied to clipboard
fun generateValidPreviewSizeList(camera: <ERROR CLASS>): List<CameraSizePair>
Content copied to clipboard
Generates a list of acceptable preview sizes. Preview sizes are not acceptable if there is not a corresponding picture size of the same aspect ratio. If there is a corresponding picture size of the same aspect ratio, the picture size is paired up with the preview size.
Link copied to clipboard
Link copied to clipboard
fun getCornerRoundedBitmap(srcBitmap: <ERROR CLASS>, cornerRadius: Int): <ERROR CLASS>
Content copied to clipboard
Link copied to clipboard