Created
November 27, 2021 15:37
-
-
Save PragmaticCoding/1029617ae1412e59a021ab82584942ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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