Creation/Dev/GScript/Changeimgpart

From Graal Bible


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.