This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun test() { | |
// Create Coil image request | |
val imageRequest = ImageRequest.Builder(platformContext).data(artworkUrl).build() | |
// Execute the image request | |
val bitmapImage = imageLoader.execute(imageRequest).image as? BitmapImage | |
// Convert Coil BitmapImage to UIImage | |
val uiImage = bitmapImage?.bitmap?.toUIImage() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package bruhcollective.itaysonlab.libvibrancy | |
import android.graphics.Bitmap | |
import androidx.compose.ui.graphics.Color | |
import androidx.compose.ui.graphics.Paint | |
import androidx.core.graphics.applyCanvas | |
import bruhcollective.itaysonlab.libvibrancy.VibrancyMaterial | |
import coil3.size.Size | |
import coil3.transform.Transformation | |
import com.google.android.renderscript.Toolkit |