Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_Putimage problem.
#6
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:
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.  Big Grin
Reply


Messages In This Thread
_Putimage problem. - by Pete - 04-07-2025, 12:02 AM
RE: _Putimage problem. - by hsiangch_ong - 04-07-2025, 12:39 AM
RE: _Putimage problem. - by bplus - 04-07-2025, 12:54 AM
RE: _Putimage problem. - by Pete - 04-07-2025, 12:58 AM
RE: _Putimage problem. - by bplus - 04-07-2025, 01:02 AM
RE: _Putimage problem. - by SMcNeill - 04-07-2025, 01:04 AM
RE: _Putimage problem. - by Pete - 04-07-2025, 01:11 AM
RE: _Putimage problem. - by Pete - 04-07-2025, 01:16 AM
RE: _Putimage problem. - by SMcNeill - 04-07-2025, 01:21 AM
RE: _Putimage problem. - by Pete - 04-07-2025, 04:27 PM
RE: _Putimage problem. - by TempodiBasic - 04-08-2025, 12:44 AM
RE: _Putimage problem. - by Pete - 04-08-2025, 01:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I'm looking for suggestions to solve the problem! Petr 10 649 02-05-2026, 04:56 PM
Last Post: ahenry3068
  Nth problem with hardware images Ikerkaz 9 474 01-23-2026, 02:58 PM
Last Post: bplus
  _Putimage Question. Pete 11 672 01-04-2026, 09:33 PM
Last Post: Pete
  Install problem...... jssantoro 6 380 12-17-2025, 08:31 PM
Last Post: madscijr
  _putimage (Solved) Pete 0 219 11-16-2025, 06:48 AM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)