I am trying to write a program that will allow a child to
work a scrambled picture. (Let's use a picture of his mother
for clarity here.)
I have used graphics program to "cut" the picture into a
four by four picture grid, with a corner missing. I have saved
each piece as a JPG file.
My program will generate a random order, which works. Now my
problem: Assume the random order to be:
05,01,09,14
10,03,02,15
11,04,13,06
12,08,07
That order calls for displaying 05.jpg in the top left corner,
display 01.jpg to the left of it, 09.jpg to the left of it, and
14.jpg in the top right corner. And so on for 15 pieces. One
piece must be "missing" to make room to move around. Of course,
it also means that my JPGs must be deliberately presized so as to
fit in the space properly.
Now my question:
I can display one gif/jpg in Powerbasic, but how do I display
multiple images and how do I control where they are displayed
on the screen? When I display one gif/jpg from Powerbasic, it
attempts to fill the screen with that image, something I need
to get control over.
Or is it impossible?
Thanks.
------------------
[This message has been edited by Robert Carneal (edited October 26, 2001).]
work a scrambled picture. (Let's use a picture of his mother
for clarity here.)
I have used graphics program to "cut" the picture into a
four by four picture grid, with a corner missing. I have saved
each piece as a JPG file.
My program will generate a random order, which works. Now my
problem: Assume the random order to be:
05,01,09,14
10,03,02,15
11,04,13,06
12,08,07
That order calls for displaying 05.jpg in the top left corner,
display 01.jpg to the left of it, 09.jpg to the left of it, and
14.jpg in the top right corner. And so on for 15 pieces. One
piece must be "missing" to make room to move around. Of course,
it also means that my JPGs must be deliberately presized so as to
fit in the space properly.
Now my question:
I can display one gif/jpg in Powerbasic, but how do I display
multiple images and how do I control where they are displayed
on the screen? When I display one gif/jpg from Powerbasic, it
attempts to fill the screen with that image, something I need
to get control over.
Or is it impossible?
Thanks.
------------------
[This message has been edited by Robert Carneal (edited October 26, 2001).]
Comment