04-07-2025, 01:04 AM
You can't do what you're trying to do @Pete
It's just not possible. Software images are for manipulation. Hardware images are *just* for display. Once they're created, that's it. They're immutable, unchangeable. All you can do with them after that is pop them up onto the hardware layer and display them. You can't just up and put them other places and use them in other images and such.... If you need to do that, stick to software and *ONLY* convert to hardware once you're finished with those software images.
Quick and simple demo:
I made my 3 temp images. t(0 to 2)
I colored them with the CLS statements. (no need for changing DEST with each)
I put the two halves onto the larger t(2) image. (again, _PutImage does this without needing to set/change _DEST)
Made of copy of all 3 images into the hardware img(0 to 2) and freed those temp images t(0 to 2) as they're *now* no longer needed.
Displayed them on your SCREEN 0 hardware-only screen.
It's just not possible. Software images are for manipulation. Hardware images are *just* for display. Once they're created, that's it. They're immutable, unchangeable. All you can do with them after that is pop them up onto the hardware layer and display them. You can't just up and put them other places and use them in other images and such.... If you need to do that, stick to software and *ONLY* convert to hardware once you're finished with those software images.
Quick and simple demo:
Code: (Select All)
Dim As Long t(2), img(2)
t(0) = _NewImage(50, 30, 32): t(1) = _NewImage(50, 30, 32): t(2) = _NewImage(50, 60, 32)
Cls , _RGB32(255, 0, 0), t(0)
Cls , _RGB32(0, 0, 255), t(1)
_PutImage (0, 0), t(0), t(2): _PutImage (0, 30), t(1), t(2)
For i = 0 To 2: img(i) = _CopyImage(t(i), 33): _FreeImage (t(i)): Next
_DisplayOrder _Hardware
Do
_Limit 30
_PutImage (0, 0), img(0)
_PutImage (100, 0), img(1)
_PutImage (200, 0), img(2)
_Display
Loop Until Len(InKey$)
System
I made my 3 temp images. t(0 to 2)
I colored them with the CLS statements. (no need for changing DEST with each)
I put the two halves onto the larger t(2) image. (again, _PutImage does this without needing to set/change _DEST)
Made of copy of all 3 images into the hardware img(0 to 2) and freed those temp images t(0 to 2) as they're *now* no longer needed.
Displayed them on your SCREEN 0 hardware-only screen.

