Win_GetPixel

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > Windows API >

Win_GetPixel

 

Description

 

Retrieves the red, green, blue (RGB) color value of the pixel at the specified coordinates.

 

Syntax

 

n = Win_GetPixel(hDc, lX, lY)

 

Returns

 

The return value is the RGB value of the pixel. If the pixel is outside of the current clipping region, the return value is CLR_INVALID.

 

Parameters

 

Name

Type

Optional

Meaning

hDc

Number

No

A handle to the device context

lX

Number

No

The x-coordinate, in logical units, of the pixel to be examined.

lY

Number

No

The y-coordinate, in logical units, of the pixel to be examined.

 

Remarks

 

For additional info, please refer to MS documentation at: http://msdn.microsoft.com/en-us/library/dd144909(VS.85).aspx

 

Restrictions

 

See also

 

Examples