Okay okay, i guess you will need a good grounding on these topics so here we go.
Functions : Load Image, Paste Image.
Now to paste a picture onto the screen darkbasic must 'get' the picture. In a program you must first have darkbasic aknowladge the pictures existance before you can actually tell darkbasic to put it on the screen. Thats where load image comes in.
--Load Image Image,Number----
Image - This is where you image is, you have to use a string (the things with " at the front and at the back), an example : "C:Myimage.jpg"
-Number - once you have told darkbasic where the image is, you have to give that image a number. This is how darkbasic remembers the image. So to put the image on the screen you have to give darkbasic the number you assigned the image to. You can choose any number (ex. 1,2,3)
There are more options with the command Load image, i have just covered the nessceities.
Now once we have loaded the image, we have to paste it on the screen, this is done by the command 'Paste Image'
--Paste Image Number,X,Y---
Image Number - The number that darkbasic has referanced the image by (when you did load image)
-X - X position to put the image
Y- Y position to put the image
EXAMPLE CODE--
sync on
sync rate 30
Input "Choose an Image to Load",Image$
Load Image Image$,1
do
Paste Image 1,(Screen Width()/2)-I,Screen Height()/2
loop
---End Code--
I have used a few tricks in the example code,
first of all i let the user pick the image and stored it in Image$ variable. Now if the user inputted "DAIMAGE", then you would get an error because you are missing the tag at the end (jpg, bmp, etc), also if the user inputted (DAIMAGE.JPG), the image HAS to be in the same folder as the exe for DBP to find it. You can use (dir) to move around folders, try figuring out how to do that. A simple (but boring) way to do it is to tell the computer where exactly it is (C:\daimage.jpg).
Now when i do load image, I have it load the Image$ that contains where the users image is. (You can use file exist to make sure that the image really exists).
In paste image, i have the computer paste our loaded image right in the ceneter of the screen, the only problem with this is that darkbasic "holds" the image by the edges, so if darkbasic were to paste the image, it would paste the top left corner of the image at the center of the screen (use sprite and offset image to make a work around)
I hope it helps
around here.. normal's just a setting on a hair dryer