Computer Science Canada

Picture not showing

Author:  Naveg [ Sun Mar 20, 2005 10:56 pm ]
Post subject:  Picture not showing

When i use Pic.Draw to draw a picture from a file, it cuts off the top part? why?

Author:  StarGateSG-1 [ Sun Mar 20, 2005 11:43 pm ]
Post subject: 

You just need to fix the location of the picture.

Author:  Naveg [ Sun Mar 20, 2005 11:44 pm ]
Post subject: 

i dont think so, its fairly small and right in the middle of the window :O

Author:  StarGateSG-1 [ Sun Mar 20, 2005 11:46 pm ]
Post subject: 

post the code then i look at it

Author:  Naveg [ Sun Mar 20, 2005 11:46 pm ]
Post subject: 

you need the pic that goes with it?

Author:  StarGateSG-1 [ Sun Mar 20, 2005 11:47 pm ]
Post subject: 

sure , then i don't have to make one

Author:  Naveg [ Sun Mar 20, 2005 11:48 pm ]
Post subject: 

code:
var suitName : string (1)
var deck : array 1 .. 4, 1 .. 13 of int %4 suits, 13 cards each
for suit : 1 .. 4
    if suit = 1 then
        suitName := "d" %diamonds
    elsif suit = 2 then
        suitName := "c" %clubs
    elsif suit = 3 then
        suitName := "h" %hearts
    elsif suit = 4 then
        suitName := "s" %spades
    end if
    for card : 1 .. 13
        deck (suit, card) := Pic.FileNew (suitName + intstr (card) + ".bmp")
    end for
end for
Pic.Draw (deck (2, 8), 200, 200, picCopy)

Author:  StarGateSG-1 [ Sun Mar 20, 2005 11:53 pm ]
Post subject: 

It works fine on my computer sry guy
Maybe fool around with the location or maybe it is your screen size.

Author:  Naveg [ Mon Mar 21, 2005 12:01 am ]
Post subject: 

this is what i get

Author:  Token [ Mon Mar 21, 2005 7:10 am ]
Post subject: 

it looks like something with your computer, what version of turing are you using? and it looks like ur on a mac, i dont know if that would affect ne thing or not, maybe one of the mods would know better

Author:  Naveg [ Mon Mar 21, 2005 7:26 am ]
Post subject: 

4.0.5, not a mac, just a skinned PC

also, it works fine with JPG's , but they areny as clear images, so if anyone can tell me whats wrong with the bmp's i'd appreciate it.

Author:  StarGateSG-1 [ Mon Mar 21, 2005 11:53 am ]
Post subject: 

hat problem is simple to fix, it is your computer, chnage to jpg's and it will work fine, or stick with bmp's because they only don't work on your computer, so everyone else will see them fine.
Hint: jpg's are only bad if you open and edit alot, IF YOU AREN'T THEN IT WILL BE FINE

Author:  Naveg [ Mon Mar 21, 2005 1:51 pm ]
Post subject: 

StarGateSG-1 wrote:
hat problem is simple to fix, it is your computer, chnage to jpg's and it will work fine, or stick with bmp's because they only don't work on your computer, so everyone else will see them fine.
Hint: jpg's are only bad if you open and edit alot, IF YOU AREN'T THEN IT WILL BE FINE


also didnt work on two other computers....

Author:  StarGateSG-1 [ Mon Mar 21, 2005 4:20 pm ]
Post subject: 

Then maybe it is the OS what system??

Author:  Naveg [ Mon Mar 21, 2005 4:21 pm ]
Post subject: 

failed on XP, failed on 98

Author:  Token [ Mon Mar 21, 2005 6:11 pm ]
Post subject: 

umm i have xp, maybe its the version of turing? i have 4.0.5 and it worked, ne one else?

Author:  mike200015 [ Mon Mar 21, 2005 7:36 pm ]
Post subject: 

yea same.. worked for me too

Author:  StarGateSG-1 [ Mon Mar 21, 2005 10:42 pm ]
Post subject: 

I use XP and it works fine, what version of turing do you have??

Author:  Naveg [ Mon Mar 21, 2005 11:07 pm ]
Post subject: 

4.0.5

Author:  StarGateSG-1 [ Mon Mar 21, 2005 11:49 pm ]
Post subject: 

I have no clue then, thier is olny one thing to do, but you must have a legal copy of turing, send in your problem to Holdsoft and they will look at it.

Author:  Mr. T [ Wed Mar 23, 2005 1:10 am ]
Post subject: 

only possible explanation i can think of is maybe you transfered a virus from one of your computers to the others...and this virus causes .bmps to malfunction Confused

run a virus scan Confused


: