Image help needed!

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By BigDC

I have 2 images (named back_image.png and front_image.png) both are in “res://Sprites”. I then have a 3rd image which is created dynamically and named: middle_image.png. The code for this 3rd image works perfectly. What I am wanting to do is combind all three images into 1 texture.

Finished Image (Texture) Structure. (front_image is on top)
-front_image
-middle_image
-back_image

The code I use to create middle_image is as follows:

for i in CardLibrary._cards:
      var image_file = "res://Sprites/middle_images/"+CardLibrary._cards[i].image+".png"
      var img = Image.new()
      var itex = ImageTexture.new()
      img.load(image_file)
      var middle_image =  itex.create_from_image(img)

Now I need code top combind all 3 images into 1 image texture …

Please help?