trouble with pic.scale
Author |
Message |
this_guy
|
Posted: 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
|
|
|
AsianSensation
|
Posted: 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. |
|
|
|
|
|
|
|