how do you make turing call up pictures?

Computer builds, hardware and software discussion or troubleshooting, including peripherals. Essentially a general place to talk about desktop computers.
Locked
Anonymous

how do you make turing call up pictures?

Post by Anonymous »

ok.. so i finished my course, and i have a good understanding of the basics of turning. now i have decided to start programming in turing for fun, however since i know the basics only, i was wondering if there was a way for turing to open up pictures after executing an "if" statement using a url. your help is greatly apprieciated.

Archived topic from Iceteks, old topic ID:3096, old post ID:25328
Sockoo
Posts: 12
Joined: Tue Apr 12, 2005 5:51 pm

how do you make turing call up pictures?

Post by Sockoo »

im assuming it would be the same as loading a picture .. why not just save the picture to where ur program is saved and just load the file instead of linking it to the webpage ? ..
either or .. here's how you'd do it

Pic.ScreenLoad (fileName : string, x, y, mode : int)


ex : Pic.ScreenLoad ("mypic.bmp", 0, 0, picCopy)
you could try replacing in the " .... " the webpage it might work


picCopy This draws the picture on top of what was underneath, obscuring it completely.

picXOR This draws the picture XORing it with the background. In DOS, you can use this function to do animation. Drawing an object on top of itself with XOR erases it and restores the background.

picMerge This draws the picture like picCopy except that any occurrence of the background color in the picture is not drawn to the screen. This allows you to draw an irregularly-shaped object and draw it to the screen.

picUnderMerge This draws the picture, but only where the background color was displayed underneath it. The effect of this is to make the picture appear to be displayed behind the background.


Archived topic from Iceteks, old topic ID:3096, old post ID:26353
Anonymous

how do you make turing call up pictures?

Post by Anonymous »

Code: Select all

    var pic : int := Pic.FileNew ("example.jpeg")
    if pic = 0 then
        put "Unable to load JPEG: ", Error.LastMsg
        return
    end if    
    Pic.Draw (pic, x, y, picCopy)[code] 

[color=#888888][size=85]Archived topic from Iceteks,  old topic ID:3096, old post ID:33562[/size][/color]
Locked