{"repo":"SmartToolFactory/Compose-Image","free":true,"listed":false,"github":"https://github.com/SmartToolFactory/Compose-Image","clone":"git clone https://github.com/SmartToolFactory/Compose-Image.git","description":"🚀🏞💪 Collection of Images, Modifiers, utility functions for Jetpack Compose to expand and enrich displaying, manipulating, scaling, resizing, zooming, and getting cropped ImageBitmap based on selection area","language":"Kotlin","stars":363,"topics":["android","image","image-manipulation","image-viewer","jetpack-compose","thumbnail","zoom-images","zoomable-images","zoom"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"Compose Image on Steroids Collection of Images, Modifiers, utility functions for Jetpack Compose to expand and enrich displaying, manipulating, scaling, resizing, zooming, and getting cropped ImageBitmap based on selection area, before/after image to with handle to show partial of both images and more is cooking up https://user-images.githubusercontent.com/35650605/179715223-ba681886-6032-461f-806a-ea6a535d0627.mp4 https://user-images.githubusercontent.com/35650605/186409295-14e967b5-a31c-4b2c-ab38-1990cbdce13a.mp4 Gradle Setup To get a Git project into your build: Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories: Step 2. Add the dependency Image ImageWithConstraints A composable that lays out and draws a given ImageBitmap . This will attempt to size the composable according to the ImageBitmap 's given width and height. ImageScope returns constraints, width and height of the drawing area based on contentScale and rectangle of imageBitmap drawn. When a bitmap is displayed scaled to fit area of Composable space used for drawing image is represented with ImageScope.imageWidth and ImageScope.imageHeight . When we display a bitmap 1000x1000px with ContentScale.Crop if it's cropped to 500x500px ImageScope.rect returns IntRect(250,250,750,750) . This composable enables building other Image based Composables that require you to know spaces around ImageBitmap based on ContentScale or which section of Bitmap is drawn to C","default_branch":null,"files":null,"tree":[],"storefront":"/r/SmartToolFactory","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SmartToolFactory/Compose-Image/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}