-
public final class ImageCropperKt
-
-
Method Summary
Modifier and Type Method Description final static CropResultcrop(ImageCropper $self, File file, IntSize maxResultSize)Initiates a new crop session, cancelling the current one, if any. final static CropResultcrop(ImageCropper $self, Uri uri, Context context, IntSize maxResultSize, Boolean cacheBeforeUse)Initiates a new crop session, cancelling the current one, if any. final static CropResultcrop(ImageCropper $self, IntSize maxResultSize, ImageBitmap bmp)Initiates a new crop session, cancelling the current one, if any. final static ImageCropperrememberImageCropper()final static ImageCropperImageCropper()Creates an ImageCropper instance. -
-
Method Detail
-
crop
final static CropResult crop(ImageCropper $self, File file, IntSize maxResultSize)
Initiates a new crop session, cancelling the current one, if any. Suspends until a result is available (cancellation, error, success) and returns it. The resulting image will be scaled down to fit maxResultSize if provided. file will be used as a source.
-
crop
final static CropResult crop(ImageCropper $self, Uri uri, Context context, IntSize maxResultSize, Boolean cacheBeforeUse)
Initiates a new crop session, cancelling the current one, if any. Suspends until a result is available (cancellation, error, success) and returns it. The resulting image will be scaled down to fit maxResultSize if provided. uri will be used as a source. Set cacheBeforeUse to false if you're certain that reopening it multiple times won't be a problem, true otherwise.
-
crop
final static CropResult crop(ImageCropper $self, IntSize maxResultSize, ImageBitmap bmp)
Initiates a new crop session, cancelling the current one, if any. Suspends until a result is available (cancellation, error, success) and returns it. The resulting image will be scaled down to fit maxResultSize if provided. bmp will be used as a source.
-
rememberImageCropper
@Composable() final static ImageCropper rememberImageCropper()
-
ImageCropper
final static ImageCropper ImageCropper()
Creates an ImageCropper instance.
-
-
-
-