Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Picture not showing
Index -> Programming, Turing -> Turing Help
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Naveg




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
StarGateSG-1




PostPosted: Sun Mar 20, 2005 11:43 pm   Post subject: (No subject)

You just need to fix the location of the picture.
Naveg




PostPosted: Sun Mar 20, 2005 11:44 pm   Post subject: (No subject)

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




PostPosted: Sun Mar 20, 2005 11:46 pm   Post subject: (No subject)

post the code then i look at it
Naveg




PostPosted: Sun Mar 20, 2005 11:46 pm   Post subject: (No subject)

you need the pic that goes with it?
StarGateSG-1




PostPosted: Sun Mar 20, 2005 11:47 pm   Post subject: (No subject)

sure , then i don't have to make one
Naveg




PostPosted: Sun Mar 20, 2005 11:48 pm   Post subject: (No 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)



c8.bmp
 Description:
 Filesize:  7.8 KB
 Viewed:  2490 Time(s)

c8.bmp


StarGateSG-1




PostPosted: Sun Mar 20, 2005 11:53 pm   Post subject: (No subject)

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




PostPosted: Mon Mar 21, 2005 12:01 am   Post subject: (No subject)

this is what i get


look.gif
 Description:
 Filesize:  89.65 KB
 Viewed:  2487 Time(s)

look.gif


Token




PostPosted: Mon Mar 21, 2005 7:10 am   Post subject: (No 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
Naveg




PostPosted: Mon Mar 21, 2005 7:26 am   Post subject: (No 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.
StarGateSG-1




PostPosted: Mon Mar 21, 2005 11:53 am   Post subject: (No 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
Naveg




PostPosted: Mon Mar 21, 2005 1:51 pm   Post subject: (No 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....
StarGateSG-1




PostPosted: Mon Mar 21, 2005 4:20 pm   Post subject: (No subject)

Then maybe it is the OS what system??
Naveg




PostPosted: Mon Mar 21, 2005 4:21 pm   Post subject: (No subject)

failed on XP, failed on 98
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 2  [ 21 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: