Skip to content

Instantly share code, notes, and snippets.

@PragmaticCoding
Created November 27, 2021 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PragmaticCoding/1029617ae1412e59a021ab82584942ba to your computer and use it in GitHub Desktop.
Save PragmaticCoding/1029617ae1412e59a021ab82584942ba to your computer and use it in GitHub Desktop.
hbox.children += createConfiguredImageView(path)
private fun createConfiguredImageView(path: URI) = ImageView(Image(path.toExternalForm())).apply {
fitHeight = 600.0
isPreserveRatio = true
opacity = 0.7
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment