I can't seem to get GetImage() to grab my whole screen side-to-side. Well, it might be grabbing the whole screen, but the pixels I've drawn are not showing up.
This draws a grid on the whole screen, then grabs it as an image, then assigns the image to a sprite.
SetVirtualResolution(640, 480)
for x = 0 to 640 step 8
drawline(x,0,x,480,255,255,255)
next x
for y = 0 to 480 step 8
drawline(0,y,640,y,255,255,255)
next y
getimage(1,0,0,640,480)
createsprite(1,1)
do
print("Sprite Size")
print(GetSpriteWidth(1))
print(GetSpriteHeight(1))
print("")
print("Image Size")
print(GetImageWidth(1))
print(GetImageHeight(1))
Sync()
loop
But this is the result:
It seems to only grab the pixels from the "middle half" of the screen, but it's only missing the horizontal sections, it's grabbing the vertical fine. I've tried different resolutions, same thing happens.
This shows that the pixels ARE actually being drawn.
SetVirtualResolution(640, 480)
do
for x = 0 to 640 step 8
drawline(x,0,x,480,255,255,255)
next x
for y = 0 to 480 step 8
drawline(0,y,640,y,255,255,255)
next y
Sync()
loop
Any thoughts?