Browse Source

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.
pull/516/head
Steyn Geldenhuys 3 years ago committed by GitHub
parent
commit
4769b2f8e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tutorials/Image_And_Icons_Manipulations/README.md

4
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)
![Loading XML vector images](loading_xml_vector_images.png)

Loading…
Cancel
Save