Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created May 3, 2024 14:53
Show Gist options
  • Save bjoerntx/8ff7733f9da18f49a4026c3ef4e829b7 to your computer and use it in GitHub Desktop.
Save bjoerntx/8ff7733f9da18f49a4026c3ef4e829b7 to your computer and use it in GitHub Desktop.
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