05-30-2005, 03:07 PM
How do you figure the size of an array needed to hold a graphic?
My Graphics get and put correctly but if i try bsave and bload only half the grphic is displayed when I put it on the screen. Here is example code
TO SAVE GRAPHIC:
dim sh(129)
screen 13
line(5,5)-(21,21),4,bf
get(5,5)-(21,21),sh
def seg = varseg(sh(0))
bsave "whatever.gfx",0,129
def seg
TO LOAD GRAPHIC:
dim sh(129)
screen 13
def seg=varseg(sh(0))
bload "whatever.gfx",0
def seg
put(10,10),sh,pset
Only half my graphic shows up and if i increase the size of the array then I get a illegal function call
ARRRRGH
Any suggestions please email me bmunnjr@hotmail.com
My Graphics get and put correctly but if i try bsave and bload only half the grphic is displayed when I put it on the screen. Here is example code
TO SAVE GRAPHIC:
dim sh(129)
screen 13
line(5,5)-(21,21),4,bf
get(5,5)-(21,21),sh
def seg = varseg(sh(0))
bsave "whatever.gfx",0,129
def seg
TO LOAD GRAPHIC:
dim sh(129)
screen 13
def seg=varseg(sh(0))
bload "whatever.gfx",0
def seg
put(10,10),sh,pset
Only half my graphic shows up and if i increase the size of the array then I get a illegal function call
ARRRRGH
Any suggestions please email me bmunnjr@hotmail.com