Creation/Dev/GScript/Changeimgpart: Difference between revisions
From Graal Bible
m (Reverted edits by Anti-up (Talk); changed back to last version by Tolnaftate2004) |
Pooper200000 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
[[Category:Scripting Reference]] | |||
{{doctitle|Usage}} | {{doctitle|Usage}} | ||
Latest revision as of 01:52, 12 September 2009
Usage
changeimgpart(index, x, y, width, height)
Parameters
index The image index of the image that is being changed.
x The starting x position for the part of the image to be shown.
y The starting y position for the part of the image to be shown.
width The width of the part of the image to be shown.
height The height of the part of the image to be shown.
Returns
Nothing.
Example
showimg(2001,"myimg.png", 100, 100); changeimgpart(2001,5,12,32,32); |
Decription
Function; displays a portion of an image that is defined by its parameters. If either the height or the width parameter is 0, the entire picture is displayed.