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

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




PostPosted: Mon Jun 21, 2004 3:23 pm   Post subject: trouble with pic.scale

i just cant seem to make pic.scale work, and had to resize in paint, save as a new file, den upload it separately...any1 wanna enlighten me?
Sponsor
Sponsor
Sponsor
sponsor
AsianSensation




PostPosted: Mon Jun 21, 2004 4:09 pm   Post subject: (No subject)

code:
var picID := Pic.FileNew ("hello.bmp")
var ScaledpicID : int

ScaledpicID := Pic.Scale (picID, 200, 200)


will scale a picture called hello.bmp to exact size of 200X200

if you want to do it such that it is proportional of the old pic, do something like this:
code:
var picID := Pic.FileNew ("hello.bmp")
var ScaledpicID : int

ScaledpicID := Pic.Scale (picID, Pic.Width (picID) * 2, Pic.Height (picID) * 2)


this will scale the picture to be double the original size.
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: