Projets
Voir sur GitHub 
MoyuruAizawa/Cropify
À propos
Image Cropper for Android Jetpack Compose.
Design et médiasWhat you can do
- set Bitmap or load android.net.Uri.
- Bitmap memory optimization.
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalCropify
Lightweight image cropper for Android Jetpack Compose.

Installation
- Add the JitPack repository to
settings.gradle.kts.
dependencyResolutionManagement {
...
repositories {
...
maven("https://jitpack.io")
}
}
- Add the dependency.
dependencies {
implementation("com.github.moyuruaizawa:cropify:${cropifyVersion}")
}
Usage
Bitmap
val state = rememberCropifyState()
Cropify(
bitmap = imageResource(R.drawable.bitmap),
state = state,
onImageCropped = {},
option = CropifyOption(
frameSize = FullSize
),
)
Uri
val state = rememberCropifyState()
Cropify(
uri = imageUri,
state = state,
onImageCropped = {},
onFailedToLoadImage = {},
option = CropifyOption(
frameSize = FullSize
),
)
Invoke CropifyState#crop, the cropped image will be passed to onImageCropped.
If loading an image from Uri fails, onFailedToLoadImage will be called.
Features
- Cropping.
- set Bitmap or load android.net.Uri.
- Bitmap memory optimization.
- API Level 21+.
Customizations
- Cropping frame color.
- Cropping frame alpha.
- Cropping frame stroke width.
- Cropping frame aspect ratio.
- Grid line color.
- Grid line alpha.
- Grid line stroke width.
- Mask (outside of cropping frame) color.
- Mask alpha.
- Background color.
Acknowledgement
I would like to thank ArthurHub/Android-Image-Cropper.
Cropify aims to a Jetpack Compose implementation of ArthurHub/Android-Image-Cropper.
Explorer des projets similaires
Chargement…