Core Function PixelGetColour

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(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...")
 
(Description)
Line 6: Line 6:
  
 
Returns a pixel color according to x, y pixel coordinates.
 
Returns a pixel color according to x, y pixel coordinates.
 +
 +
=== Parameters ===
  
 
==== x ====
 
==== x ====

Revision as of 05:38, 28 November 2011

PixelGetColour ( <x>, <y> )

Contents

Description

Returns a pixel color 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 color.

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