Package 

Class ImageCropperKt

    • 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.