Core Function PixelGetColour

From Sputnik Wiki
Revision as of 12:38, 14 June 2015 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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));
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox