android

Exporting a Composable as an image (in an Android app)

How to export a Composable as an image? When searching for ways to export something drawn by a Composable on screen, the answer often proposed is to fall back on the underlying ComposeView object and use the pre-existing View.draw(Canvas) method. This works just fine for a lot of cases, but unfortunately for me, it does […]

Exporting a Composable as an image (in an Android app) Lire la suite »

Adding Patterns and tint to a raster image in Android Compose

Solving the problem of adding a pattern and a color to a raster image

Tinting an image : hints of the problem When we first started adding color over a raster image in this previous article, you may have noticed that some values of BlendMode we used resulted in the image being used only as a contour. When we are trying to add a pattern to an image, this is

Solving the problem of adding a pattern and a color to a raster image Lire la suite »