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

Username:   Password: 
 RegisterRegister   
 pic.scale
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
msimard8




PostPosted: Mon Dec 13, 2004 10:43 am   Post subject: pic.scale

how do i make this guy smaller uising pic.scale

sorry the same program is posted twice..



help.zip
 Description:

Download
 Filename:  help.zip
 Filesize:  9.96 KB
 Downloaded:  150 Time(s)


help.zip
 Description:

Download
 Filename:  help.zip
 Filesize:  9.96 KB
 Downloaded:  127 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Neo




PostPosted: Mon Dec 13, 2004 10:53 am   Post subject: (No subject)

code:
var pic := Pic.FileNew ("turing1.bmp")
var newWidth := Pic.Width (pic)
var newHeight := Pic.Height (pic)
var newPic := Pic.Scale (pic, newWidth div 2, newHeight div 2)
Pic.Draw (newPic, 0, 0, picCopy)


This is scalled down to half its original size. If you want it smaller divide newWidth and newHeight by a bigger number.
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 1  [ 2 Posts ]
Jump to:   


Style:  
Search: