Well, if your bitmap has the same size as your screen width and height, i recommend to use:
load image "image.bmp",1
paste image 1,0,0
But...
If you want stretch or tile a bitmap, I would do it this way:
sync on : sync rate 0
hide mouse
`make an image:
for x = 1 to 50
ink rgb(rnd(255),rnd(255),rnd(255)),0
dot rnd(100),rnd(100)
next x
get image 1,0,0,100,100
do
`clear screen
cls
`control
if inkey$() = "1" then mode = 1
if inkey$() = "0" then mode = 0
`modes
if mode = 1
tile_background(1,1)
else
stretch_background(1,1)
endif
`draw a cursor to the screen
box mousex(),mousey(),mousex()+5,mousey()+5
sync
loop
`*********
`functions
`*********
`Tiling background with an image(and sprite)
function tile_background(image,sprite)
sprite sprite,0,0,image
width = sprite width(sprite)
height = sprite height(sprite)
delete sprite sprite
nr_tilesX = int(screen width() / width)
nr_tilesY = int(screen height() / height)
for x = 0 to nr_tilesX
for y = 0 to nr_tilesY
paste image image,x * width,y * height
next y
next x
endfunction
`Stretching background with an image(and sprite)
function stretch_background(image,sprite)
sprite sprite,0,0,image
size sprite sprite,screen width(),screen height()
paste sprite sprite,0,0
hide sprite sprite
endfunction
At least, that's the way I would do it... (With a sprite)
Immunity and Annihalation makes Immunihalation...