Package renetik.android.imaging.extensions

Functions

Link copied to clipboard
fun Bitmap.copy(): Bitmap?
Link copied to clipboard
fun Uri.createFixOrientationMatrix(): Matrix
Link copied to clipboard
fun Uri.fixRotationByContentQuery(matrix: Matrix)
Link copied to clipboard
fun <T : ImageView> T.image(@DrawableRes resourceId: Int?): T
fun <T : ImageView> T.image(parent: CSHasRegistrations, file: File): T
fun <T : ImageView> T.image(parent: CSHasRegistrations, @DrawableRes resourceId: Int?): T
fun <T> ImageView.image(    parent: CSHasRegistrations,     property: CSProperty<T>,     valueToImage: (T) -> File): CSRegistration
Link copied to clipboard
fun File.loadBitmap(mutable: Boolean = false): Bitmap?
Link copied to clipboard
fun File.resizeImage(maxTargetWidth: Int, maxTargetHeight: Int): File
fun Uri.resizeImage(    maxTargetWidth: Int,     maxTargetHeight: Int,     output: OutputStream): Uri
Link copied to clipboard
fun Bitmap.saveTo(    file: File,     format: Bitmap.CompressFormat = Bitmap.CompressFormat.JPEG,     quality: Int = 70): Bitmap
Link copied to clipboard
fun Bitmap.scale(maxTargetWidth: Int, maxTargetHeight: Int): Bitmap
Link copied to clipboard
fun File.write(    bitmap: Bitmap,     format: Bitmap.CompressFormat = Bitmap.CompressFormat.JPEG,     quality: Int = 80): File