Browse Source

updated README.md added usefull comment

pull/2839/head
Ajinkya 2 years ago
parent
commit
6f71043c34
  1. 4
      tutorials/Image_And_Icons_Manipulations/README.md

4
tutorials/Image_And_Icons_Manipulations/README.md

@ -67,7 +67,7 @@ fun main() = singleWindowApplication {
val density = LocalDensity.current val density = LocalDensity.current
Column { Column {
AsyncImage( AsyncImage(
load = { loadImageBitmap(File("sample.png")) }, load = { loadImageBitmap(File("sample.png")) },//Use the absoulte path where ever required.
painterFor = { remember { BitmapPainter(it) } }, painterFor = { remember { BitmapPainter(it) } },
contentDescription = "Sample", contentDescription = "Sample",
modifier = Modifier.width(200.dp) modifier = Modifier.width(200.dp)
@ -80,7 +80,7 @@ fun main() = singleWindowApplication {
modifier = Modifier.width(200.dp) modifier = Modifier.width(200.dp)
) )
AsyncImage( AsyncImage(
load = { loadXmlImageVector(File("compose-logo.xml"), density) }, load = { loadXmlImageVector(File("compose-logo.xml"), density) },//Use the absoulte path where ever required.
painterFor = { rememberVectorPainter(it) }, painterFor = { rememberVectorPainter(it) },
contentDescription = "Compose logo", contentDescription = "Compose logo",
contentScale = ContentScale.FillWidth, contentScale = ContentScale.FillWidth,

Loading…
Cancel
Save