Skip to content

Instantly share code, notes, and snippets.

@PragmaticCoding
Last active November 27, 2021 15:38
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/fdbc1af6c4b89a7bf1ac17342961d67e to your computer and use it in GitHub Desktop.
Save PragmaticCoding/fdbc1af6c4b89a7bf1ac17342961d67e to your computer and use it in GitHub Desktop.
val imageView = ImageView(Image(path.toExternalForm()))
imageView.fitHeight = 600.0
imageView.isPreserveRatio = true
imageView.opacity = 0.7
hbox.getChildren().add(imageView)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment