Created
May 3, 2024 14:53
-
-
Save bjoerntx/8ff7733f9da18f49a4026c3ef4e829b7 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
string imagePath = "Images/signature1.jpg"; | |
byte[] bytes = File.ReadAllBytes(imagePath); | |
using (MemoryStream ms = new MemoryStream( | |
bytes, 0, bytes.Length, writable: false, publiclyVisible: true)) | |
{ | |
// create image object | |
TXTextControl.Image myImage = new TXTextControl.Image(ms); | |
textControl1.Images.Add(myImage, -1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment