MemPrint and MemInput
#3
There's no "reverse" on _MEMNEW.  Once you use it, it's manual handling of that block from that point on.

The easiest way to do what you're suggesting is:
handle = _MEMNEW... sizes as needed
DIM tempM AS _mem
tempM = _MEMIMAGE(handle)

then just _MEMCOPY the memnew block to the tempM which points to the image.

Images hold a lot more info than you think.  Length, height, bits per pixel, palette, font, blend on/off, print cursor x/y info, current background/foreground colors....  lots of stuff that a memnew block wouldn't track at all.
Reply


Messages In This Thread
MemPrint and MemInput - by SMcNeill - 08-22-2022, 12:59 AM
RE: MemPrint and MemInput - by OldMoses - 08-22-2022, 01:56 AM
RE: MemPrint and MemInput - by SMcNeill - 08-22-2022, 02:04 AM
RE: MemPrint and MemInput - by SMcNeill - 08-22-2022, 10:01 AM
RE: MemPrint and MemInput - by justsomeguy - 08-22-2022, 11:09 AM
RE: MemPrint and MemInput - by SMcNeill - 08-22-2022, 11:14 AM
RE: MemPrint and MemInput - by SMcNeill - 08-22-2022, 03:03 PM
RE: MemPrint and MemInput - by justsomeguy - 08-22-2022, 08:59 PM



Users browsing this thread: 2 Guest(s)