Repository navigation
Full Changelog: v4.0.0...v4.1.0
ImageCropView 4.1.0
✨ New Features
- Pinch & double-tap zoom — set
enableZoom = trueonImageCropViewto zoom and pan the source image while cropping. The crop overlay stays fixed while the image moves beneath it. - Rotation-safe crop state — crop rectangle, zoom, and pan now survive device rotation and other configuration changes via the new
rememberSaveableImageCrop(bitmap)composable.
(#18)
⚠️ API Changes (breaking)
ImageCropViewis now a top-level@Composable— callImageCropView(imageCrop = …, …)and pass in the state holder, instead ofimageCrop.ImageCropView(…).- Create the
ImageCropstate holder via factory composables rather than constructing it directly:rememberSaveableImageCrop(bitmap)— rotation-safe (recommended)rememberImageCrop(bitmap)— in-process only
onCrop(cropSourceImage: Boolean = false)— passtrueto crop the original bitmap at full resolution.
📖 Docs
- README rewritten for the new API: state holders, full
ImageCropViewparameter reference, zoom,onCrop/resetView, edge types, and requirements.