Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Justice
15
Years of Service
User Offline
Joined: 22nd Jun 2004
Location:
Posted: 16th Mar 2015 20:47
Ok

I have pasted an image 1920x1080 to the screen (1920x1080 is my current screen size), the picture only covers the left corner of my screen.
How do I make it cover the whole screen ?
Mike Archer
5
Years of Service
User Offline
Joined: 19th Feb 2015
Location: Wales
Posted: 16th Mar 2015 21:21
I don't think you can have images larger than 1024x1024, could that be it?
Justice
15
Years of Service
User Offline
Joined: 22nd Jun 2004
Location:
Posted: 16th Mar 2015 21:40
I pasted an image 500 by 500 on the screen and it displayed it in the top left hand corner

load image "background.jpg", 1
paste image 1,0,0

the image is quite small.

Even when I changed my screen size to 640x480 it only took up 1/4 of the screen.

Is there another way to set a background picture image ?
BatVink
Moderator
16
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Mar 2015 22:20
What are the virtual dimensions of your app?
Try setting it to the same size as the virtual width and height

Quidquid latine dictum sit, altum sonatur
Mike Archer
5
Years of Service
User Offline
Joined: 19th Feb 2015
Location: Wales
Posted: 16th Mar 2015 23:58
Is that code AppGameKit? It looks like dark basic to me.
CJB
Valued Member
16
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 17th Mar 2015 14:32
I agree with Mike. In AppGameKit you'll need to create a sprite from your image, and then use drawsprite if you really need to render it to the back buffer. Alternatively, just leave the sprite displayed in the background (use setpritedepth to send it behind other sprites on the screen). You can scale it up to fit the screen with SetSpriteSize.

Good luck!

V2 T1 (Mostly)
Uzmadesign

Login to post a reply

Server time is: 2020-02-26 07:50:28
Your offset time is: 2020-02-26 07:50:28