From 4769b2f8e9cac070941c104128a17b27fc8dee42 Mon Sep 17 00:00:00 2001 From: Steyn Geldenhuys <52039901+sieveo@users.noreply.github.com> Date: Sat, 20 Mar 2021 14:51:11 +0100 Subject: [PATCH] Update README.md with image resource path (#510) The loading "images from resources" specifies that the image is placed in `resources/images` however the loading of the resource does not reflect this path. --- tutorials/Image_And_Icons_Manipulations/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/Image_And_Icons_Manipulations/README.md b/tutorials/Image_And_Icons_Manipulations/README.md index cbfe8c9195..1e8b00c8c0 100755 --- a/tutorials/Image_And_Icons_Manipulations/README.md +++ b/tutorials/Image_And_Icons_Manipulations/README.md @@ -20,7 +20,7 @@ import androidx.compose.ui.res.imageResource fun main() { Window { Image( - bitmap = imageResource("sample.png"), // ImageBitmap + bitmap = imageResource("images/sample.png"), // ImageBitmap contentDescription = "Sample", modifier = Modifier.fillMaxSize() ) @@ -391,4 +391,4 @@ fun main() { } ``` -![Loading XML vector images](loading_xml_vector_images.png) \ No newline at end of file +![Loading XML vector images](loading_xml_vector_images.png)