I have pixel-art style images stored in res/drawable with their naturally small scale, but meant to be scaled up for display. However the default behaviour seems to be to blur the upscaled image to try and hide the pixels. How can that be disabled?
- This is from a screenshot of the phone. You can see the image is blurry compared to the text.

- This is the desired scaled image with sharp pixels (please ignore the background)

I see there is a similar question for the old Android framework, but I'm using Jetpack Compose.
There is now a a
filterQualityparameter you can set toNonein theImagecomposable to disable bilinear interpolation. This is since version1.1.0-alpha01ofandroidx.compose.ui:ui.Example usage:
Workarounds for older versions are mentioned here.