MAKE IMAGE FROM MEMBLOCK This command will make an image from a memblock.
Syntax
    MAKE IMAGE FROM MEMBLOCK Image Number, Memblock Number
Parameters
    Image Number
Integer The memblock number
    Memblock Number
Integer The image number
Returns
This command does not return a value.
Description
The specified values must be integer values and the source resource must exist or the command will fail. The memblock stores the data as described in the respective memblock construction command.
Example Code
    load image "face.bmp",1

    MemblockNumber=1

    MAKE MEMBLOCK FROM IMAGE MemblockNumber, 1

    delete image 1

    MAKE IMAGE FROM MEMBLOCK1, MemblockNumber

    rem Display data

    cls

    print "MEMBLOCK EXPRESSION DATA"

    print

    if MEMBLOCK EXIST(MemblockNumber)=1

    print "memblock:";MemblockNumber

    print "exist:";MEMBLOCK EXIST(MemblockNumber)

    print "ptr:";GET MEMBLOCK PTR(MemblockNumber)

    print "size:";GET MEMBLOCK SIZE(MemblockNumber)

    endif

    rem Delete memblocks

    if MEMBLOCK EXIST(MemblockNumber)=1 then DELETE MEMBLOCK MemblockNumber

    do

    loop

    end
See also
MEMBLOCKS Commands Menu Index