Older Newer
Sat, 09 Nov 2019 06:09:16 . . . . SyneRyder [Clarifying it works with the fourth tile buffer]


Changes by last author:

Added:
= t4getp =

== Syntax ==

int t4getp(int x, int y)

== Arguments ==

:x, y

::Image coordinates

== Return ==

Returns the pixel value at the specified image coordinates in the fourth tile buffer

== Description ==

This function lets you read a whole pixel from the fourth tile buffer. Unlike t4get the returned value includes the values of all color channels (including the transparency channel if one is available) of the pixel. Using t4getp instead of t4get takes only approximately half as much time. To decode the individual color values from the returned pixel value you have to use the Rval, Gval, Bval and Aval functions. Currently only works with 8 bit images.

== See Also ==

srcp, pgetp, psetp, tgetp, tsetp, t4setp, Rval, Gval, Bval and Aval