Created
March 28, 2022 15:15
-
-
Save bjoerntx/0c0d6457252ea29a0d01185050a353d1 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
byte[] bytes = System.IO.File.ReadAllBytes("image.png"); | |
MemoryStream ms = new MemoryStream( | |
bytes, 0, bytes.Length, writable: false, publiclyVisible: true); | |
TXTextControl.Image image = new TXTextControl.Image(ms); | |
textControl1.Images.Add(image, -1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment