RETURNS THE GREEN PRIMARY COMPONENT OF A PIXEL IN THE SYSTEM OBJECT NUMBER N
ACTION
The function COLOR_PIXEL_GREEN(N,X,Y) returns the green primary component of a pixel in the system object designated by its number N.
The system object is of type : FORM, PICTURE.
X and Y are the coordinates of the analyzed pixel.
SYNTAX:
Result=COLOR_PIXEL_GREEN(N,X,Y)
USE ERROR EXAMPLE
rem create a PICTURE
picture 1
rem fill the PICTURE with a picture
file_load 1,"my picture.bmp"
rem print the green component of the pixel in (10,30)
print color_pixel_green(1,10,30)
COLOR_PIXEL_GREEN()
COLOR_PIXEL_GREEN(N,X,Y)
SEE ALSO
FORM
PICTURE
COLOR_PIXEL_BLUE
COLOR_PIXEL_RED