Skip to main content

Putslice

PutSlice (Statement)​

Format​

putslice x_position, y_position, variable[]
putslice ( x_position, y_position, variable[] )
putslice x_position, y_position, { x1, y1, x2, y2, x3, y3 ... }
putslice ( x_position, y_position, { x1, y1, x2, y2, x3, y3 ... } )

Description​

Put the graphics stored in the slice array on the screen at x,y, which is the top left corner of where it is painted.

The coordinates are measured in pixels unless a Window has been set, in which case they are in the units that window defines, the same as they are for Pixel.

The slice itself is always a number of pixels wide and high. A window places its corner and does not make it any larger or smaller, so putslice x, y, getslice(x, y, w, h) puts every pixel back exactly where it came from whether a window is set or not.

See Also​

GetSlice, Pixel, PutSlice, Window

History​

0.9.6bNew To Version
1.99.99.65Changed from a string of data to a 2 dimensional array. Removed the transparency color option.
1.99.99.72added required [] to passing variable array
2.3The corner may be given in Window units