I would normally make it fit the maximum size it can without creating a squashed image. Something like this:
img = LoadImage("myImage.png")
spr = CreateSprite(img)
SetSpriteSize(spr, GetDeviceWidth(), -1)
If GetSpriteHeight(spr)<GetDeviceHeight()
SetSpriteSize(spr, -1, GetDeviceHeight())
endif
SetSpritePositionByOffset(spr, GetDeviceWidth()/2, GetDeviceHeight()/2)
FixSpriteToScreen(spr, 1)
If you don't mind stretching it do something like this:
img = LoadImage("myImage.png")
spr = CreateSprite(img)
SetSpriteSize(spr, GetDeviceWidth(), GetDeviceHeight())
SetSpritePositionByOffset(spr, GetDeviceWidth()/2, GetDeviceHeight()/2)
FixSpriteToScreen(spr, 1)
Using AppGameKit V2 Tier 1