Created
February 19, 2018 09:58
-
-
Save michaliskambi/8019874cf96bee5daeded159b6df6095 to your computer and use it in GitHub Desktop.
Test TCastleImageControl
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
uses CastleControls, CastleWindow, CastleFilesUtils, CastleColors; | |
var | |
Window: TCastleWindowCustom; | |
Bg: TCastleSimpleBackground; | |
Image: TCastleImageControl; | |
begin | |
Window := TCastleWindowCustom.Create(Application); | |
Window.Open; | |
Bg := TCastleSimpleBackground.Create(Application); | |
Bg.Color := Yellow; | |
Window.Controls.InsertFront(Bg); | |
Image := TCastleImageControl.Create(Application); | |
Image.URL := ApplicationData('Input.png'); | |
Window.Controls.InsertFront(Image); | |
Application.Run; | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment