Core Function PixelGetColour
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> PixelGetColour ( <x>, <y> ) </pre> === Description === Returns a pixel color according to x, y pixel coordinates. ==== x ==== x coordinate of pixel. ==== y ==== y coo...") |
m (1 revision) |
||
| (4 intermediate revisions by one user not shown) | |||
| Line 5: | Line 5: | ||
=== Description === | === Description === | ||
| − | Returns a pixel | + | Returns a pixel colour according to x, y pixel coordinates. |
| + | |||
| + | === Parameters === | ||
==== x ==== | ==== x ==== | ||
| Line 17: | Line 19: | ||
=== Return Value === | === Return Value === | ||
| − | Success: Returns decimal value of pixel's | + | Success: Returns decimal value of pixel's colour. |
| − | Failure: Returns -1 if invalid coordinates. | + | Failure: Returns -1 if invalid coordinates. |
=== Remarks === | === Remarks === | ||
Latest revision as of 12:38, 14 June 2015
PixelGetColour ( <x>, <y> )
Contents |
Description
Returns a pixel colour according to x, y pixel coordinates.
Parameters
x
x coordinate of pixel.
y
y coordinate of pixel.
Return Value
Success: Returns decimal value of pixel's colour.
Failure: Returns -1 if invalid coordinates.
Remarks
RGB colour mode is used by default but this can be changed using the ColourMode option.
Example
$var = PixelGetColour( 10 , 100 ); MsgBox("The decmial color is $var"); MsgBox("The hex color is" . Hex($var, 6));