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

2
tutorials/Image_And_Icons_Manipulations/README.md

@ -20,7 +20,7 @@ import androidx.compose.ui.res.imageResource
fun main() { fun main() {
Window { Window {
Image( Image(
bitmap = imageResource("sample.png"), // ImageBitmap bitmap = imageResource("images/sample.png"), // ImageBitmap
contentDescription = "Sample", contentDescription = "Sample",
modifier = Modifier.fillMaxSize() modifier = Modifier.fillMaxSize()
) )

Loading…
Cancel
Save